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

Fix eventemitter saturation by winston #13

Merged
merged 5 commits into from
Aug 2, 2019
Merged

Conversation

adenhertog
Copy link
Contributor

Winston adds eventemitters for every instance created by createLogger. This eventually throws a node warning showing emitter saturation.

This PR creates a single Winston instance, and then wraps a proxy around it for each logger instance; thereby achieving transient lifecycle of the logger, but a singleton of the winston logger itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant