Logging Format should include date-information
See original GitHub issueHi, I put this issue here, because I guess it is a “core” feature. If not, please feel free to “move” this to the correct place (or tell me, where to put it).
In the logging output of a process you see something like this:
16:16:01.789 INFO processor.OcropyBinarize ...
If the process is running for some days, you cannot see the day, this logging output belongs to.
It would be much better to have something like:
2022-07-21 16:16:01.789 INFO processor.OcropyBinarize ...
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How to Customize the time format for Python logging?
I want to have a custom date format, but I want to include the microseconds (or is it milliseconds?). %S is meant to...
Read more >Log Formatting: 7 Best Practices for Readable Log Files | Scalyr
1. Make Your Log Entries Meaningful With Context · 2. Use a Standard Date and Time Format · 3. Use Local Time +...
Read more >logging — Logging facility for Python — Python 3.11.1 ...
A Formatter can be initialized with a format string which makes use of knowledge of the LogRecord attributes - such as the default...
Read more >Log Formats – a (Mostly) Complete Guide - Graylog
A log format is a structured format that allows logs to be machine-readable and easily parsed. This is the power of using structured...
Read more >10 Python Logging Format Best Practices - CLIMB
The default logging format includes the date and time, the log level, the name of the logger, and the message. This information is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There is also documentation available here. We should also add a section on the website about this in order to make the info more accessible
yes, that’s it - many thanks!
@kba: Feel free to close this issue, or keep in open in case you would like to track this documentation topic proposed by @mweidling