mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #17007: Merged minor changes from 3.3.
This commit is contained in:
commit
e461f7939d
1 changed files with 8 additions and 8 deletions
|
@ -81,14 +81,14 @@ is the module's name in the Python package namespace.
|
||||||
|
|
||||||
The constructor sets this attribute to ``True``.
|
The constructor sets this attribute to ``True``.
|
||||||
|
|
||||||
.. note:: If you attach a handler to several loggers, it may emit the same
|
.. note:: If you attach a handler to a logger *and* one or more of its
|
||||||
record multiple times. In general, you should not need to attach a
|
ancestors, it may emit the same record multiple times. In general, you
|
||||||
handler to more than one logger - if you just attach it to the
|
should not need to attach a handler to more than one logger - if you just
|
||||||
appropriate logger which is highest in the logger hierarchy, then it
|
attach it to the appropriate logger which is highest in the logger
|
||||||
will see all events logged by all descendant loggers, provided that
|
hierarchy, then it will see all events logged by all descendant loggers,
|
||||||
their propagate setting is left set to ``True``. A common scenario is to
|
provided that their propagate setting is left set to ``True``. A common
|
||||||
attach handlers only to the root logger, and let propagation take care of
|
scenario is to attach handlers only to the root logger, and to let
|
||||||
the rest.
|
propagation take care of the rest.
|
||||||
|
|
||||||
.. method:: Logger.setLevel(lvl)
|
.. method:: Logger.setLevel(lvl)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue