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

Support critical as loglevel #146

Open
zenonhun opened this issue Mar 9, 2021 · 0 comments
Open

Support critical as loglevel #146

zenonhun opened this issue Mar 9, 2021 · 0 comments

Comments

@zenonhun
Copy link

zenonhun commented Mar 9, 2021

This transport has some hardcoded level, however the underlying producer can handle more:
https://github.com/squeeks/glossy/blob/master/lib/glossy/produce.js

`var SeverityIndex = {
'emerg': 0, // Emergency: system is unusable
'emergency': 0,

'alert': 1,                 // Alert: action must be taken immediately

'crit': 2,                  // Critical: critical conditions
'critical': 2,

'err': 3,                   // Error: error conditions
'error': 3,

'warn': 4,                  // Warning: warning conditions
'warning': 4,

'notice': 5,                // Notice: normal but significant condition

'info': 6  ,                // Informational: informational messages
'information': 6,
'informational': 6,

'debug':  7                 // Debug: debug-level messages

};`

Also winston-syslog supports CustomProducer which may support any loglevel to generate syslog messages.

As a winston logger can have multiple transports it shall be possible to set the available loglevels in then flexibly, to get common severity levels.

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