]> granicus.if.org Git - python/commitdiff
Logging documentation update.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 19 Dec 2010 06:02:31 +0000 (06:02 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 19 Dec 2010 06:02:31 +0000 (06:02 +0000)
Doc/library/logging.rst

index b71a37f8b5181ef7b2af11ec09422146e4369201..25a254930eee6201f986268c628737c9163604b8 100644 (file)
@@ -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
 -------------