Add date to logs (#85)

This commit is contained in:
calzoneman 2013-05-04 11:43:38 -05:00
parent 1b376d3177
commit 281c498911
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
var fs = require("fs"); var fs = require("fs");
function getTimeString() { function getTimeString() {
return new Date().toTimeString().split(" ")[0]; var d = new Date();
return d.toDateString() + " " + d.toTimeString().split(" ")[0];
} }
var Logger = function(filename) { var Logger = function(filename) {