mirror of
https://github.com/python/cpython.git
synced 2024-12-18 14:24:33 +08:00
Closes #13459: Clarified documentation on Logger.propagate. Thanks to Mike Fogel for the patch.
This commit is contained in:
parent
06403cff16
commit
287f24691d
@ -57,9 +57,15 @@ instantiated directly, but always through the module-level function
|
|||||||
|
|
||||||
.. attribute:: Logger.propagate
|
.. attribute:: Logger.propagate
|
||||||
|
|
||||||
If this evaluates to false, logging messages are not passed by this logger or by
|
If this evaluates to true, logging messages are passed by this logger and by
|
||||||
its child loggers to the handlers of higher level (ancestor) loggers. The
|
its child loggers to the handlers of higher level (ancestor) loggers.
|
||||||
constructor sets this attribute to 1.
|
Messages are passed directly to the ancestor loggers' handlers - neither the
|
||||||
|
level nor filters of the ancestor loggers in question are considered.
|
||||||
|
|
||||||
|
If this evaluates to false, logging messages are not passed to the handlers
|
||||||
|
of ancestor loggers.
|
||||||
|
|
||||||
|
The constructor sets this attribute to 1.
|
||||||
|
|
||||||
|
|
||||||
.. method:: Logger.setLevel(lvl)
|
.. method:: Logger.setLevel(lvl)
|
||||||
|
Loading…
Reference in New Issue
Block a user