hubot
hubot copied to clipboard
Massive logger messages
[Fri Feb 01 2019 19:09:59 GMT+0100 (Central European Standard Time)] is really hard to read as a prefix.
How about [2019-02-01 19:09:59 GMT+1]?
I think new Date is hard coded so you'd have to change the Log module.
if (exports[levelStr] <= this.level) {
var msg = fmt.apply(null, args);
this.stream.write(
'[' + new Date + ']'
+ ' ' + levelStr
+ ' ' + msg
+ '\n'
);
}
},```