You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
The text was updated successfully, but these errors were encountered:
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"
The text was updated successfully, but these errors were encountered: