Michael Merickel
2012-07-25 c8a84b2bf25e4489d0f6f60d7752bd03c816b67f
add logging call to wsgi setup
1 files modified
11 ■■■■ changed files
docs/tutorials/modwsgi/index.rst 11 ●●●● patch | view | raw | blame | history
docs/tutorials/modwsgi/index.rst
@@ -73,9 +73,10 @@
    .. code-block:: python
       from pyramid.paster import get_app
       application = get_app(
         '/Users/chrism/modwsgi/env/myapp/production.ini', 'main')
       from pyramid.paster import get_app, setup_logging
       ini_path = '/Users/chrism/modwsgi/env/myapp/production.ini'
       setup_logging(ini_path)
       application = get_app(ini_path, 'main')
    The first argument to ``get_app`` is the project configuration file
    name.  It's best to use the ``production.ini`` file provided by your
@@ -85,6 +86,10 @@
    ``application`` is important: mod_wsgi requires finding such an
    assignment when it opens the file.
    The call to ``setup_logging`` initializes the standard library's
    `logging` module to allow logging within your application.
    See :ref:`logging_config`.
#.  Make the ``pyramid.wsgi`` script executable.
    .. code-block:: text