mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Issue #19789: Clarified documentation for logging.disable.
This commit is contained in:
parent
896414fedf
commit
a9c179bd3e
1 changed files with 4 additions and 2 deletions
|
@ -987,8 +987,10 @@ functions.
|
||||||
effect is to disable all logging calls of severity *lvl* and below, so that
|
effect is to disable all logging calls of severity *lvl* and below, so that
|
||||||
if you call it with a value of INFO, then all INFO and DEBUG events would be
|
if you call it with a value of INFO, then all INFO and DEBUG events would be
|
||||||
discarded, whereas those of severity WARNING and above would be processed
|
discarded, whereas those of severity WARNING and above would be processed
|
||||||
according to the logger's effective level. To undo the effect of a call to
|
according to the logger's effective level. If
|
||||||
``logging.disable(lvl)``, call ``logging.disable(logging.NOTSET)``.
|
``logging.disable(logging.NOTSET)`` is called, it effectively removes this
|
||||||
|
overriding level, so that logging output again depends on the effective
|
||||||
|
levels of individual loggers.
|
||||||
|
|
||||||
|
|
||||||
.. function:: addLevelName(lvl, levelName)
|
.. function:: addLevelName(lvl, levelName)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue