mirror of https://github.com/calzoneman/sync.git
Add date to logs (#85)
This commit is contained in:
parent
1b376d3177
commit
281c498911
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue