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

Skip to content

Commit 52b3d34

Browse files
committed
Issue #17007: Made minor changes to documentation wording.
1 parent 6c4c16c commit 52b3d34

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Doc/library/logging.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ is the module's name in the Python package namespace.
8181

8282
The constructor sets this attribute to ``True``.
8383

84-
.. note:: If you attach a handler to several loggers, it may emit the same
85-
record multiple times. In general, you should not need to attach a
86-
handler to more than one logger - if you just attach it to the
87-
appropriate logger which is highest in the logger hierarchy, then it
88-
will see all events logged by all descendant loggers, provided that
89-
their propagate setting is left set to ``True``. A common scenario is to
90-
attach handlers only to the root logger, and let propagation take care of
91-
the rest.
84+
.. note:: If you attach a handler to a logger *and* one or more of its
85+
ancestors, it may emit the same record multiple times. In general, you
86+
should not need to attach a handler to more than one logger - if you just
87+
attach it to the appropriate logger which is highest in the logger
88+
hierarchy, then it will see all events logged by all descendant loggers,
89+
provided that their propagate setting is left set to ``True``. A common
90+
scenario is to attach handlers only to the root logger, and to let
91+
propagation take care of the rest.
9292

9393
.. method:: Logger.setLevel(lvl)
9494

0 commit comments

Comments
 (0)