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

Configure winston in winstond #5

Open
afroewis opened this issue Jan 9, 2018 · 0 comments
Open

Configure winston in winstond #5

afroewis opened this issue Jan 9, 2018 · 0 comments

Comments

@afroewis
Copy link

afroewis commented Jan 9, 2018

Great software, thanks!

On my client that sends logs, I am using not NPM log levels, but Syslog log levels.
That means that I will possible log emergency, alert etc. logs.
In that case, winstond will throw an error and not log anything, because it uses NPM log levels by default.
There is no way to configure winston itself in winstond. I tried the following code:

const winstond = require('winstond');
winstond.Server({levels: { emerg: 0, alert: 1, crit: 2, error: 3, warning: 4, notice: 5, info: 6, debug: 7 }});

That doesn't work unfortunately. It would be great if it was possible to configure winston, or at least the log levels, in winstond.

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

No branches or pull requests

1 participant