Logging documentation update.

This commit is contained in:
Vinay Sajip 2010-12-19 06:02:31 +00:00
parent cca5be2e4c
commit 7504302875
1 changed files with 7 additions and 4 deletions

View File

@ -564,8 +564,9 @@ Programmers can configure logging in three ways:
3. Creating a dictionary of configuration information and passing it 3. Creating a dictionary of configuration information and passing it
to the :func:`dictConfig` function. to the :func:`dictConfig` function.
The following example configures a very simple logger, a console For the reference documentation on the last two options, see :ref:`config-ref`.
handler, and a simple formatter using Python code:: The following example configures a very simple logger, a console handler, and
a simple formatter using Python code::
import logging import logging
@ -704,8 +705,8 @@ the new dictionary-based approach::
handlers: [console] handlers: [console]
propagate: no propagate: no
root: root:
level: DEBUG level: DEBUG
handlers: [console] handlers: [console]
For more information about logging using a dictionary, see For more information about logging using a dictionary, see
:ref:`logging-config-api`. :ref:`logging-config-api`.
@ -3761,6 +3762,8 @@ with the :mod:`warnings` module.
(i.e. those in effect before `captureWarnings(True)` was called). (i.e. those in effect before `captureWarnings(True)` was called).
.. _config-ref:
Configuration Configuration
------------- -------------