February 2006
Intermediate to advanced
648 pages
14h 53m
English
The logging module provides a flexible facility for applications to log events, errors, warnings, and debugging information. This information can be collected, filtered, written to files, sent to the system log, and even sent over the network to remote machines.
Five different levels of information are collected by the logging module. These levels have both a symbolic name and a numerical value that is used for filtering:
| Level | Value | Description |
|---|---|---|
| CRITICAL | 50 | Critical errors/messages |
| ERROR | 40 | Errors |
| WARNING | 30 | Warning messages |
| INFO | 20 | Informative messages |
| DEBUG | 10 | Debugging |
| NOTSET | 0 | No level set |
In the most simple case, logging messages are issued by an application and sent to a special Logging object known as the root logger. By default, the ...
Read now
Unlock full access