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
enhancement(remap): Add to_syslog_severity function for Syslog log level keywords #5505
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should call this to_syslog_severity
? This would be more specific and leave the door open for other severity mappings.
https://github.com/timberio/vector/issues/5507 seems related which proposes calling this |
7056e77
to
efa9270
Compare
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
efa9270
to
71a334d
Compare
Signed-off-by: Luc Perkins <luc@timber.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In absence of #5507, which feels like it might be a little ways off, I'd propose calling this to_syslog_severity
. We can always deprecate it and change to syslog::to_severity
later.
Otherwise, this looks good to me!
Signed-off-by: Luc Perkins <luc@timber.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few last notes, otherwise this looks good.
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
45cfc29
to
c865458
Compare
Signed-off-by: Luc Perkins <luc@timber.io>
Signed-off-by: Luc Perkins <luc@timber.io>
Addresses #5501 with a
to_syslog_severity
Remap function that converts a Syslog log level keyword into an integer severity level.Note: the heavy lifting has been done here. I'm marking this as a draft until (a) #5522 lands and (b) we figure out a naming system for modules/namespaces.