Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7504302

Browse files
committed
Logging documentation update.
1 parent cca5be2 commit 7504302

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

Doc/library/logging.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,9 @@ Programmers can configure logging in three ways:
564564
3. Creating a dictionary of configuration information and passing it
565565
to the :func:`dictConfig` function.
566566

567-
The following example configures a very simple logger, a console
568-
handler, and a simple formatter using Python code::
567+
For the reference documentation on the last two options, see :ref:`config-ref`.
568+
The following example configures a very simple logger, a console handler, and
569+
a simple formatter using Python code::
569570

570571
import logging
571572

@@ -704,8 +705,8 @@ the new dictionary-based approach::
704705
handlers: [console]
705706
propagate: no
706707
root:
707-
level: DEBUG
708-
handlers: [console]
708+
level: DEBUG
709+
handlers: [console]
709710

710711
For more information about logging using a dictionary, see
711712
:ref:`logging-config-api`.
@@ -3761,6 +3762,8 @@ with the :mod:`warnings` module.
37613762
(i.e. those in effect before `captureWarnings(True)` was called).
37623763

37633764

3765+
.. _config-ref:
3766+
37643767
Configuration
37653768
-------------
37663769

0 commit comments

Comments
 (0)