summaryrefslogtreecommitdiff
path: root/docs/narr/logging.rst
diff options
context:
space:
mode:
authorKarl O. Pinc <kop@meme.com>2018-11-24 00:59:35 -0600
committerKarl O. Pinc <kop@meme.com>2018-11-24 00:59:35 -0600
commitbc17531c1eb67f2a5eb31b966f2ede63d767b803 (patch)
tree4515caefd3c2016c6377f503b693120cc05ee14b /docs/narr/logging.rst
parent2b306dcb80b9ec510c74f3baa1de2ca23339cfc3 (diff)
downloadpyramid-bc17531c1eb67f2a5eb31b966f2ede63d767b803.tar.gz
pyramid-bc17531c1eb67f2a5eb31b966f2ede63d767b803.tar.bz2
pyramid-bc17531c1eb67f2a5eb31b966f2ede63d767b803.zip
Split long complicated sentence into 3
Diffstat (limited to 'docs/narr/logging.rst')
-rw-r--r--docs/narr/logging.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/docs/narr/logging.rst b/docs/narr/logging.rst
index 408c8fc7c..b12434317 100644
--- a/docs/narr/logging.rst
+++ b/docs/narr/logging.rst
@@ -40,11 +40,10 @@ 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``.
-The ``pserve`` command calls the :func:`pyramid.paster.setup_logging` function,
-a thin wrapper around the :func:`logging.config.fileConfig` using the specified
-``.ini`` file, if it contains a ``[loggers]`` section (all of the
-cookiecutter-generated ``.ini`` files do).
-``setup_logging`` reads the logging configuration from the ``ini`` file given on the ``pserve`` command line.
+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`.
+When ``setup_logging`` is passed the ``ini`` file given on the ``pserve`` command line it reads the file and configures logging.
Default logging configuration is provided in both the default
``development.ini`` and the ``production.ini`` files. If you use our cookiecutter to generate a Pyramid project with the name of the package as ``hello_world``, then the logging configuration