-
Notifications
You must be signed in to change notification settings - Fork 118
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
Winston 3 breaking on syslog levels. #88
Comments
I have noticed the same thing using Winston v2.4.0.
I get the same error as @Noirbot
Any update on when there might be a fix for this issue? |
I still got the same error with winston v3.10.3, [email protected] TypeError: callback is not a function Here is my logger.js: Any thoughts? const logger = new (winston.Logger)({ |
Had the same issue as above |
I am getting the same issue. Is anybody having any solution/idea? |
The same is happening with me. |
Any example how to make correct syslog logger? |
@vlastoun the default values should work. I'm not experienced with syslog but the following might help. For info I needed to enable udp in my rsyslog config (debian 9); in ``, uncomment the folllowing lines
then restart the service : |
I can verify this is still a problem. I can reproduce it like such:
Running that code will produce the following:
Clearly that isn't right since |
I was able to reproduce this problem without |
Somewhat a follow-on to #87, which was closed.
Setting the syslog log levels with the param on createLogger, as is appropriate for Winston 3 doesn't seem to be working quite as expected. I made a little test program:
When I run that with Node 8, Winston 3.0.0-rc1, I get this error:
Which implies that it's not getting the right levels, which seems odd, since
winston.config.syslog
logs out as:Now, if I swap the Logger constructor to:
We get further, but now I get this error:
Which looks like winston-syslog isn't reading the level that's passed in as a valid level, since you shouldn't be able to get to line 126 without failing this conditional:
The text was updated successfully, but these errors were encountered: