summaryrefslogtreecommitdiff
path: root/docs/tutorials/modwsgi
diff options
context:
space:
mode:
authorTres Seaver <tseaver@palladion.com>2012-08-06 12:41:12 -0400
committerTres Seaver <tseaver@palladion.com>2012-08-06 12:41:12 -0400
commit871449e94c37b0e7bf2310bb21f2743954f52d91 (patch)
tree4ba44340c3ff20d2e76171e3917122a2549121fe /docs/tutorials/modwsgi
parent02ce7d6425bcd81590ae50fa298f50ea47422a47 (diff)
parentae2fd21399de2eed6ff60f32c34e304ec017b4f4 (diff)
downloadpyramid-871449e94c37b0e7bf2310bb21f2743954f52d91.tar.gz
pyramid-871449e94c37b0e7bf2310bb21f2743954f52d91.tar.bz2
pyramid-871449e94c37b0e7bf2310bb21f2743954f52d91.zip
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/tutorials/modwsgi')
-rw-r--r--docs/tutorials/modwsgi/index.rst11
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/tutorials/modwsgi/index.rst b/docs/tutorials/modwsgi/index.rst
index e070f8eda..d11167344 100644
--- a/docs/tutorials/modwsgi/index.rst
+++ b/docs/tutorials/modwsgi/index.rst
@@ -73,9 +73,10 @@ commands and files.
.. 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 @@ commands and files.
``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