You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working with the log file, I've noticed that it has some things that could be improved.
Would it be possible to implement log levels, so that you can e.g. only see warnings and errors instead of everything?
Would it be possible to use ISO8601 UTC timestamps (e.g. 2023-10-01T13:23:05.156Z) instead of local time? It's so much better if you're ingesting the log into a log aggregator. Another benefit is that they're always fixed width.
Is it possible to use logfmt formatting instead of the custom log format you're using now? That is semi-structured format that is easy to read and has a defined syntax. It also makes it easier to handle multi-line messages, as you can use a separate key in the log line to indicate which part of the log line you're outputting (if multiple lines). With this in place you don't need to make your JSON dumps a single line, or you can make compacting them an option for those that prefer it.
Example: line=2/5 msg="This is my partial log line"
The text was updated successfully, but these errors were encountered:
While working with the log file, I've noticed that it has some things that could be improved.
Would it be possible to implement log levels, so that you can e.g. only see warnings and errors instead of everything?
Would it be possible to use ISO8601 UTC timestamps (e.g.
2023-10-01T13:23:05.156Z
) instead of local time? It's so much better if you're ingesting the log into a log aggregator. Another benefit is that they're always fixed width.Is it possible to use logfmt formatting instead of the custom log format you're using now? That is semi-structured format that is easy to read and has a defined syntax. It also makes it easier to handle multi-line messages, as you can use a separate key in the log line to indicate which part of the log line you're outputting (if multiple lines). With this in place you don't need to make your JSON dumps a single line, or you can make compacting them an option for those that prefer it.
Example:
line=2/5 msg="This is my partial log line"
The text was updated successfully, but these errors were encountered: