Logging formatting
See original GitHub issueCurrently our default logging format is as follows:
%(name)s - %(levelname)s - %(message)s
This looks like the following:
distributed.scheduler - INFO - Starting worker compute stream, tcp://100.96.10.12:38938
distributed.scheduler - INFO - Register tcp://100.96.9.13:36728
distributed.scheduler - INFO - Starting worker compute stream, tcp://100.96.9.13:36728
Should we change this? Options available here: https://docs.python.org/3/library/logging.html#logrecord-objects
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
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 >How to properly format the python logging formatter?
I try to format the way my Python logging formatter outputs strings. I wrote a minimalistic example to show the problem:
Read more >Logging in Python - Real Python
Learn why and how to get started with Python's powerful logging module to meet the needs ... The Logging Module; Basic Configurations; Formatting...
Read more >What is the best string formatting technique for logging in ...
What is the best string formatting technique for logging in Python? ; printf-style, % operator, oldschool. # example with %s format specifier ...
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 >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
Issued a PR here (probably the tiniest PR ever)
OK cool, can you guys think of something else that should be included in the log by default while we’re at it?