-
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
Always getting error "Cannot log unknown syslog level" #97
Comments
The following sample code i tried `var winston = require('winston') winston.setLevels(winston.config.syslog); var logger = new (winston.Logger)({ logger.debug('Hello distributed log files!')` |
I am getting the same error. |
same error with key warn |
I have winston 2 and it started to work when i downgraded winston-syslog to version 1.2.6 |
The same thing |
Having the same issue `'use strict'; const os = require('os'); /**
/**
/**
/**
/**
/**
/**
|
Hi All,
I am always getting error "Cannot log unknown syslog level". When i look into the code, the following code snippet is reason for this error
if (!~levels.indexOf(info[LEVEL])) {
return callback(new Error('Cannot log unknown syslog level: ' + info[LEVEL]));
}
Can you please provide simple working sample?
Regards,
Mukilan
The text was updated successfully, but these errors were encountered: