juttle / winston-logrotate

Log rotating transport for Winston
Apache License 2.0
10 stars 8 forks source link

Formatter is not applied #8

Closed kdrkrst closed 7 years ago

kdrkrst commented 7 years ago

Hi, It seems logrotate does not use formatter. var output = common.log({ colorize: this.colorize, json: this.json, level: level, message: msg, meta: meta, stringify: this.stringify, timestamp: this.timestamp, prettyPrint: this.prettyPrint });

I have added a line formatter: this.formatter and issue seems vanished. Could you please evaluate this solution?

jathanasiou commented 7 years ago

I have added a pull request to fix this issue as well, please merge if possible. @juttle