diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-01-21 21:58:29 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-01-21 21:58:29 (GMT) |
commit | e461f7939ddc39e4acb0cc02ce439cacb48991c5 (patch) | |
tree | 36ef190a8b251dc7bb2afd90689b52db927ad7ea | |
parent | 272b0e324cdc3bb2b6beaedfb5043a817710cfeb (diff) | |
parent | 9fff3865dace7f5e1f1c1039deb8207442acc443 (diff) | |
download | cpython-e461f7939ddc39e4acb0cc02ce439cacb48991c5.zip cpython-e461f7939ddc39e4acb0cc02ce439cacb48991c5.tar.gz cpython-e461f7939ddc39e4acb0cc02ce439cacb48991c5.tar.bz2 |
Issue #17007: Merged minor changes from 3.3.
-rw-r--r-- | Doc/library/logging.rst | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index dc8662b..11863a9 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -81,14 +81,14 @@ is the module's name in the Python package namespace. The constructor sets this attribute to ``True``. - .. note:: If you attach a handler to several loggers, it may emit the same - record multiple times. In general, you should not need to attach a - handler to more than one logger - if you just attach it to the - appropriate logger which is highest in the logger hierarchy, then it - will see all events logged by all descendant loggers, provided that - their propagate setting is left set to ``True``. A common scenario is to - attach handlers only to the root logger, and let propagation take care of - the rest. + .. note:: If you attach a handler to a logger *and* one or more of its + ancestors, it may emit the same record multiple times. In general, you + should not need to attach a handler to more than one logger - if you just + attach it to the appropriate logger which is highest in the logger + hierarchy, then it will see all events logged by all descendant loggers, + provided that their propagate setting is left set to ``True``. A common + scenario is to attach handlers only to the root logger, and to let + propagation take care of the rest. .. method:: Logger.setLevel(lvl) |