Skip to content

Use log levels from rfc5424 #2

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

Closed
H4ad opened this issue May 25, 2024 · 5 comments
Closed

Use log levels from rfc5424 #2

H4ad opened this issue May 25, 2024 · 5 comments

Comments

@H4ad
Copy link
Owner

H4ad commented May 25, 2024

At https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1, page 11.

Suggested by Matteo.

@H4ad
Copy link
Owner Author

H4ad commented May 26, 2024

Blocked by #4

Unblocked, we can just rewrite the new log levels directly.

@H4ad
Copy link
Owner Author

H4ad commented May 30, 2024

@mcollina About this suggestion, these are the log levels:

Numerical       Severity
0               Emergency: system is unusable
1               Alert: action must be taken immediately
2               Critical: critical conditions
3               Error: error conditions
4               Warning: warning conditions
5               Notice: normal but significant condition
6               Informational: informational messages
7               Debug: debug-level messages

Do you think we should keep the log level number as 0-7? Or even allow the users to customize the log level?

I think we maybe will need to be more opinionated here, so probably sticking with 0-7 and also do not allow new log levels.

@H4ad
Copy link
Owner Author

H4ad commented May 30, 2024

About Facility, I think we don't need to introduce that multiplication.

@mcollina
Copy link

Keep them fixed for now.

@H4ad
Copy link
Owner Author

H4ad commented Jun 1, 2024

I updated the current implementation to use these new log levels.

I also added the silent with the value -Infinity.

@H4ad H4ad closed this as completed Jun 1, 2024
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

2 participants