Skip to content

Instantly share code, notes, and snippets.

@aj07mm
Created November 27, 2018 16:42
Show Gist options
  • Save aj07mm/31cec672c3383a75d7352488ce9a688f to your computer and use it in GitHub Desktop.
Save aj07mm/31cec672c3383a75d7352488ce9a688f to your computer and use it in GitHub Desktop.
logging_levels.md
Logging Levels
The numeric values of logging levels are given in the following table. These are primarily of interest if you want to define your own levels, and need them to have specific values relative to the predefined levels. If you define a level with the same numeric value, it overwrites the predefined value; the predefined name is lost.

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

https://docs.python.org/3/library/logging.html#logging-levels

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