Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include lastResort in logging HOWTO flow chart #121035

Closed
bessman opened this issue Jun 26, 2024 · 0 comments
Closed

Include lastResort in logging HOWTO flow chart #121035

bessman opened this issue Jun 26, 2024 · 0 comments
Labels
docs Documentation in the Doc dir

Comments

@bessman
Copy link
Contributor

bessman commented Jun 26, 2024

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

@bessman bessman added the docs Documentation in the Doc dir label Jun 26, 2024
bessman added a commit to bessman/cpython that referenced this issue Jun 26, 2024
bessman added a commit to bessman/cpython that referenced this issue Jun 26, 2024
bessman added a commit to bessman/cpython that referenced this issue Jun 27, 2024
bessman added a commit to bessman/cpython that referenced this issue Jun 27, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jun 27, 2024
…handler. (pythonGH-121036)

(cherry picked from commit 237baf4)

Co-authored-by: Alexander Bessman <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jun 27, 2024
…handler. (pythonGH-121036)

(cherry picked from commit 237baf4)

Co-authored-by: Alexander Bessman <[email protected]>
vsajip pushed a commit that referenced this issue Jun 27, 2024
vsajip pushed a commit that referenced this issue Jun 27, 2024
@vsajip vsajip closed this as completed Jun 27, 2024
mrahtz pushed a commit to mrahtz/cpython that referenced this issue Jun 30, 2024
vsajip added a commit to vsajip/cpython that referenced this issue Jul 2, 2024
vsajip added a commit to vsajip/cpython that referenced this issue Jul 2, 2024
Akasurde pushed a commit to Akasurde/cpython that referenced this issue Jul 3, 2024
vsajip added a commit to vsajip/cpython that referenced this issue Jul 3, 2024
vsajip added a commit to vsajip/cpython that referenced this issue Jul 3, 2024
vsajip added a commit to vsajip/cpython that referenced this issue Jul 3, 2024
…pect to dark/light modes. (pythonGH-121265)

(cherry picked from commit 0898354)

Co-authored-by: Vinay Sajip <[email protected]>
vsajip added a commit to vsajip/cpython that referenced this issue Jul 3, 2024
…pect to dark/light modes. (pythonGH-121265)

(cherry picked from commit 0898354)

Co-authored-by: Vinay Sajip <[email protected]>
vsajip added a commit that referenced this issue Jul 3, 2024
vsajip added a commit that referenced this issue Jul 3, 2024
…o dark/light modes. (GH-121265) (GH-121320)

[3.13] gh-121035: Further improve logging flow diagram with respect to dark/light modes. (GH-121265)
(cherry picked from commit 0898354)
vsajip added a commit to vsajip/cpython that referenced this issue Jul 3, 2024
vsajip added a commit to vsajip/cpython that referenced this issue Jul 3, 2024
vsajip added a commit that referenced this issue Jul 3, 2024
vsajip added a commit that referenced this issue Jul 3, 2024
noahbkim pushed a commit to hudson-trading/cpython that referenced this issue Jul 11, 2024
noahbkim pushed a commit to hudson-trading/cpython that referenced this issue Jul 11, 2024
noahbkim pushed a commit to hudson-trading/cpython that referenced this issue Jul 11, 2024
estyxx pushed a commit to estyxx/cpython that referenced this issue Jul 17, 2024
estyxx pushed a commit to estyxx/cpython that referenced this issue Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
Development

No branches or pull requests

2 participants