hubot icon indicating copy to clipboard operation
hubot copied to clipboard

Massive logger messages

Open riptl opened this issue 6 years ago • 1 comments

image

[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]?

riptl avatar Feb 01 '19 18:02 riptl

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'
      );
    }
  },```

joeyguerra avatar Oct 08 '19 11:10 joeyguerra