juttle / winston-logrotate

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

Redirects logs intended for console to file #4

Closed JustWalters closed 7 years ago

JustWalters commented 7 years ago

This transport overwrites stdout and stderr so when the console transport tries to log something, the data gets sent to the file instead. Removing these lines fixes the issue and I haven't noticed it causing any new problems, but maybe I'm missing something.

lukebarnard1 commented 7 years ago

I think you mean these lines: https://github.com/juttle/winston-logrotate/blob/master/lib/winston-logrotate.js#L127

iongion commented 7 years ago

Can this fix be applied ?

demmer commented 7 years ago

Fixed