Repository navigation
Include lastResort in logging HOWTO flow chart #121035
Copy link
Copy link
Closed
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Description
Activity
- added a commit that references this issue
on Jun 27, 2024 11 remaining items
- added 7 commits that reference this issue
on Jul 3, 2024 - added 4 commits that reference this issue
on Jul 11, 2024 - added 4 commits that reference this issue
on Jul 17, 2024
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Projects
- StatusShow more project fieldsDone
Documentation
The flow chart in the logging HOWTO is very helpful in understanding how the logging module works. However, the flow chart does not make clear why a logger with no configured handlers can still emit records.
The reason is
lastResort, which is used if no handlers are found in the logger hierarchy as documented further down in the HOWTO: https://docs.python.org/3/howto/logging.html#what-happens-if-no-configuration-is-provided.I suggest updating the flow chart to include it.
Linked PRs