Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 287f246

Browse files
committed
Closes #13459: Clarified documentation on Logger.propagate. Thanks to Mike Fogel for the patch.
1 parent 06403cf commit 287f246

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

Doc/library/logging.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,15 @@ instantiated directly, but always through the module-level function
5757

5858
.. attribute:: Logger.propagate
5959

60-
If this evaluates to false, logging messages are not passed by this logger or by
61-
its child loggers to the handlers of higher level (ancestor) loggers. The
62-
constructor sets this attribute to 1.
60+
If this evaluates to true, logging messages are passed by this logger and by
61+
its child loggers to the handlers of higher level (ancestor) loggers.
62+
Messages are passed directly to the ancestor loggers' handlers - neither the
63+
level nor filters of the ancestor loggers in question are considered.
64+
65+
If this evaluates to false, logging messages are not passed to the handlers
66+
of ancestor loggers.
67+
68+
The constructor sets this attribute to 1.
6369

6470

6571
.. method:: Logger.setLevel(lvl)

0 commit comments

Comments
 (0)