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

no logs were sent without specifying a valid levelMapping #10

Open
merickso opened this issue Jun 6, 2018 · 1 comment
Open

no logs were sent without specifying a valid levelMapping #10

merickso opened this issue Jun 6, 2018 · 1 comment
Labels

Comments

@merickso
Copy link

merickso commented Jun 6, 2018

No logs were being written to rsyslog even though everything looked correct. I was able to test that the tcp port was open using nc. I traced through the code and realized the default levelMapping was {} which could be a problem. The docs say the default value should have been "winston.config.syslog.levelMapping" but the code said otherwise. I tried finding this object and it did not exist but I did find winston.config.syslog.levels. As soon as I added levelMappings: winston.config.syslog.levels to the options, the logs were forwarded as expected.

The default should be updated to use this value and the docs should be updated.

I'm using "winston": "2.4.0" and "winston-rsyslog2": "0.0.5"

@imsky
Copy link
Owner

imsky commented Jun 6, 2018

ok will fix

@imsky imsky added the bug label Jun 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants