Python Module logging Concepts: Difference between revisions
Jump to navigation
Jump to search
(→Logger) |
|||
Line 11: | Line 11: | ||
At the top of the logger hierarchy, there is a special root logger, called ''. | At the top of the logger hierarchy, there is a special root logger, called ''. | ||
=Format= | |||
The default format, without any customization is <code><LOGGING_LEVEL>:<logger_name>:<message></code>. |
Revision as of 04:16, 7 July 2022
Internal
Logger
Logger Hierarchy
If the logger name contains dot characters, they separate levels of a hierarchy. Closer to the left, the higher the logger in the logger hierarchy: a
has a higher level than a.b
. Each level in the hierarchy can be given different properties. At the top of the hierarchy there's a root logger.
The root Logger
At the top of the logger hierarchy, there is a special root logger, called .
Format
The default format, without any customization is <LOGGING_LEVEL>:<logger_name>:<message>
.