summaryrefslogtreecommitdiffstats
path: root/Doc/howto
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-04-10 19:00:43 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-04-10 19:00:43 (GMT)
commit8bf2aea9622ebb74da032c7114e210f13cf06b20 (patch)
treedf5c3c3639af74a1aa0e19327a3fd93789ce910a /Doc/howto
parenteba2428002c7c98ba98141f710322904a8928b47 (diff)
parent074faff92526106bf89a786490fff79ef66e0722 (diff)
downloadcpython-8bf2aea9622ebb74da032c7114e210f13cf06b20.zip
cpython-8bf2aea9622ebb74da032c7114e210f13cf06b20.tar.gz
cpython-8bf2aea9622ebb74da032c7114e210f13cf06b20.tar.bz2
Merged updates to logging reference and HOWTO from 3.2.
Diffstat (limited to 'Doc/howto')
-rw-r--r--Doc/howto/logging.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/Doc/howto/logging.rst b/Doc/howto/logging.rst
index 2c9514a..44b2f59 100644
--- a/Doc/howto/logging.rst
+++ b/Doc/howto/logging.rst
@@ -651,6 +651,22 @@ You can see that the config file approach has a few advantages over the Python
code approach, mainly separation of configuration and code and the ability of
noncoders to easily modify the logging properties.
+.. warning:: The :func:`fileConfig` function takes a default parameter,
+ ``disable_existing_loggers``, which defaults to ``True`` for reasons of
+ backward compatibility. This may or may not be what you want, since it
+ will cause any loggers existing before the :func:`fileConfig` call to
+ be disabled unless they (or an ancestor) are explicitly named in the
+ configuration. Please refer to the reference documentation for more
+ information, and specify ``False`` for this parameter if you wish.
+
+ The dictionary passed to :func:`dictConfig` can also specify a Boolean
+ value with key ``disable_existing_loggers``, which if not specified
+ explicitly in the dictionary also defaults to being interpreted as
+ ``True``. This leads to the logger-disabling behaviour described above,
+ which may not be what you want - in which case, provide the key
+ explicitly with a value of ``False``.
+
+
.. currentmodule:: logging
Note that the class names referenced in config files need to be either relative