Logging in Ruby: (Almost) Everything You Need to Know
akshaykhot.com
Logging in Ruby: (Almost) Everything You Need to Know
1–10 of 18 posts
Re: Logging in Ruby: (Almost) Everything You Need to Know
#2Re: Logging in Ruby: (Almost) Everything You Need to Know
#3How can a log level be unknown?
Re: Logging in Ruby: (Almost) Everything You Need to Know
#4How can a log level be unknown?
It could be useful for logging messages that don't fit a particular category, i.e. a catch-all category, to identify patterns over time. Edit: You could also use it to turn-off logging for a while. Since unknown is the highest level, no other logs would be recorded.
Re: Logging in Ruby: (Almost) Everything You Need to Know
#5How can a log level be unknown?
Re: Logging in Ruby: (Almost) Everything You Need to Know
#6At least some log scraping + monitors with graylog, ELK or the like would be the minimum imo…
Re: Logging in Ruby: (Almost) Everything You Need to Know
#7Wow in 2023 someone thinks this is worth a blog post? At least some log scraping + monitors with graylog, ELK or the like would be the minimum imo…
It was meant to be a beginner-level introduction to logging (especially for those developers who got started in 2023 ;))
Re: Logging in Ruby: (Almost) Everything You Need to Know
#8Wow in 2023 someone thinks this is worth a blog post? At least some log scraping + monitors with graylog, ELK or the like would be the minimum imo…
Re: Logging in Ruby: (Almost) Everything You Need to Know
#9Earlier quoted context omitted.
It could be useful for logging messages that don't fit a particular category, i.e. a catch-all category, to identify patterns over time. Edit: You could also use it to turn-off logging for a while. Since unknown is the highest level, no other logs would be recorded.
Can you give an example of a log message that would not fit typical logging levels? (Info/Debug/Error etc)
Numerical Severity
Code
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
[1] https://datatracker.ietf.org/doc/html/rfc5424Re: Logging in Ruby: (Almost) Everything You Need to Know
#10How can a log level be unknown?