diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-01-21 21:58:05 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-01-21 21:58:05 (GMT) |
commit | 9fff3865dace7f5e1f1c1039deb8207442acc443 (patch) | |
tree | d2fea1c59bc6f63f662c3137fb8e076329315c11 | |
parent | f29839e8e81e7e3b7434f7855045ccc40d15c123 (diff) | |
parent | 52b3d34d1c8a976ae0c154e5aae8390b10510a8a (diff) | |
download | cpython-9fff3865dace7f5e1f1c1039deb8207442acc443.zip cpython-9fff3865dace7f5e1f1c1039deb8207442acc443.tar.gz cpython-9fff3865dace7f5e1f1c1039deb8207442acc443.tar.bz2 |
Issue #17007: Merged minor changes from 3.2.
-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) |