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
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`.
(i.e. those in effect before `captureWarnings(True)` was called).
+.. _config-ref:
+
Configuration
-------------