summaryrefslogtreecommitdiff
path: root/docs/narr/logging.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/narr/logging.rst')
-rw-r--r--docs/narr/logging.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/narr/logging.rst b/docs/narr/logging.rst
index b12434317..8ae8469de 100644
--- a/docs/narr/logging.rst
+++ b/docs/narr/logging.rst
@@ -40,6 +40,9 @@ format <ConfigParser>`. This is the same format used as the Python
The application-related and logging-related sections in the configuration file can coexist peacefully.
The logging-related sections in the file configure logging when you run ``pserve``.
+.. index::
+ pair: logging; startup
+
On :ref:`startup <the_startup_process>` the ``pserve`` command :ref:`configures logging <startup_logging_initialization>` using the ``.ini`` file given to it.
If the ``.ini`` file contains a ``[loggers]`` section (all of the cookiecutter-generated ``.ini`` files do) ``pserve`` calls the :func:`pyramid.paster.setup_logging` function.
The :func:`setup_logging` function is a thin wrapper around the :func:`logging.config.fileConfig`.