Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loosing logs in Winston #620

Closed
SyRenity opened this issue May 5, 2015 · 3 comments
Closed

Loosing logs in Winston #620

SyRenity opened this issue May 5, 2015 · 3 comments

Comments

@SyRenity
Copy link

SyRenity commented May 5, 2015

Switched to Winston from a regular console, and for some reason loosing logs.

I'm logging both to DailyRotateFile and to Stackify, and lines have been missing both in the file and the Stackify system.

As the both transports should be separated, any idea why this happens?

Also, how to start diagnosing it?

@ahkimkoo
Copy link

ahkimkoo commented May 5, 2015

me too, loosing logs

I've just worked around this by passing the file transport a stream instead of a filename:-

{ stream: fs.createWriteStream('/path/to/logfile', { flags: 'a' }), ... }

Seems to be working, but early days

@SyRenity
Copy link
Author

SyRenity commented May 5, 2015

@ahkimkoo We need to use DailyRotate logs, hence this method unfortunately won't work for us.

@indexzero
Copy link
Member

I believe this is a duplicate of #288

@winstonjs winstonjs locked and limited conversation to collaborators May 19, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants