diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2010-12-19 06:02:31 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2010-12-19 06:02:31 (GMT) |
commit | 7504302875d4584f7f6059609783dba1f2597669 (patch) | |
tree | c40cdaa02de5ba767f1dbf7d76319602aea4c183 /Doc/library/logging.rst | |
parent | cca5be2e4c5b1a45f42e63e9b1a0a6c6a6647876 (diff) | |
download | cpython-7504302875d4584f7f6059609783dba1f2597669.zip cpython-7504302875d4584f7f6059609783dba1f2597669.tar.gz cpython-7504302875d4584f7f6059609783dba1f2597669.tar.bz2 |
Logging documentation update.
Diffstat (limited to 'Doc/library/logging.rst')
-rw-r--r-- | Doc/library/logging.rst | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index b71a37f..25a2549 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -564,8 +564,9 @@ Programmers can configure logging in three ways: 3. Creating a dictionary of configuration information and passing it to the :func:`dictConfig` function. -The following example configures a very simple logger, a console -handler, and a simple formatter using Python code:: +For the reference documentation on the last two options, see :ref:`config-ref`. +The following example configures a very simple logger, a console handler, and +a simple formatter using Python code:: import logging @@ -704,8 +705,8 @@ the new dictionary-based approach:: handlers: [console] propagate: no root: - level: DEBUG - handlers: [console] + level: DEBUG + handlers: [console] For more information about logging using a dictionary, see :ref:`logging-config-api`. @@ -3761,6 +3762,8 @@ with the :mod:`warnings` module. (i.e. those in effect before `captureWarnings(True)` was called). +.. _config-ref: + Configuration ------------- |