mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Logging documentation - further update.
This commit is contained in:
parent
5286ccfdf8
commit
0e65cf0b6a
1 changed files with 5 additions and 0 deletions
|
@ -146,6 +146,11 @@ messages::
|
||||||
INFO:root:So should this
|
INFO:root:So should this
|
||||||
WARNING:root:And this, too
|
WARNING:root:And this, too
|
||||||
|
|
||||||
|
The call to :func:`basicConfig` should come *before* any calls to :func:`debug`,
|
||||||
|
:func:`info` etc. As it's intended as a one-off simple configuration facility,
|
||||||
|
only the first call will actually do anything: subsequent calls are effectively
|
||||||
|
no-ops.
|
||||||
|
|
||||||
This example also shows how you can set the logging level which acts as the
|
This example also shows how you can set the logging level which acts as the
|
||||||
threshold for tracking. In this case, because we set the threshold to
|
threshold for tracking. In this case, because we set the threshold to
|
||||||
``DEBUG``, all of the messages were printed.
|
``DEBUG``, all of the messages were printed.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue