FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

The table on ``logging`` debug levels is unclear · Issue #107877 · python/cpython · GitHub

/ cpython Public

The table on logging debug levels is unclear #107877

Description

Existing Table

Many readers need a quick discussion to interpert the current table:

Level Numeric value
logging.CRITICAL 50
logging.ERROR 40
logging.WARNING 30
logging.INFO 20
logging.DEBUG 10
logging.NOTSET 0

Suggested Table

Level Numeric value Info
logging.CRITICAL 50 Only crashing bugs
logging.ERROR 40 The above, & major errors
logging.WARNING 30 The above, & minor errors
logging.INFO 20 The above, & detailed info
logging.DEBUG 10 The above, & 'helpful' messages
logging.NOTSET 0 No error logging

The number of times I've had a bug in code due to the misunderstanding, or the number of times I've needed a whiteboard and 5 minutes to explain this concept is astounding. For some reason, it's just not intuitive for like 1/3 of people I have trained or worked with.

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixes3.12only security fixes3.13bugs and security fixesdocsDocumentation in the Doc dir

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL