June 2019
Beginner to intermediate
770 pages
19h 24m
English
The logging module has five predefined levels of importance. Each level has a global variable (or two) with the level number. The level of importance represents a spectrum of optionality, from debugging messages (rarely important enough to show) to critical or fatal errors (always important), as shown in the following table:
|
Logging module variable |
Value |
|
DEBUG |
10 |
|
INFO |
20 |
|
WARNING or WARN |
30 |
|
ERROR |
40 |
|
CRITICAL or FATAL |
50 |
We can add additional levels for even more nuanced control over what messages are passed or rejected. For example, some applications support multiple levels of verbosity. Similarly, some applications include multiple levels of debugging details. We might want ...
Read now
Unlock full access