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

Weird severity levels - RFC 5424 #138

Closed
theduke opened this issue Dec 20, 2012 · 2 comments
Closed

Weird severity levels - RFC 5424 #138

theduke opened this issue Dec 20, 2012 · 2 comments

Comments

@theduke
Copy link

theduke commented Dec 20, 2012

How did you arrive at the weird numerical values for the logging levels?

RFC5424 still defines the values as 7 for debug to 0 for emergency.
Pretty much every system I know uses those values.

The priority according to 5424 is Facility*8 + severity, but you are obviously not using that either.

@Seldaek
Copy link
Owner

Seldaek commented Dec 20, 2012

The levels more or less follow the HTTP status codes - but more importantly they leave enough room for adding custom levels in between if needed. Which sequential numbers don't allow.

Why is it that you ask? It's kind of an internal thing that should not really affect users as far as I can tell.

@Seldaek Seldaek closed this as completed Jan 7, 2013
@EnoahNetzach
Copy link
Contributor

EnoahNetzach commented Aug 10, 2017

@Seldaek interoperability, for starter.

I have to manage log levels that are given by my system through environment variables, following this weird standard, that is only remotely supposed to follow RFC 5424.

Priorities are well defined (as @theduke was saying), and names are also well defined (you use INFO, uppercase, abbreviated; The standard is Informational).

I find also this comment ("Logging levels from syslog protocol defined in RFC 5424") to be very disorienting..

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

3 participants