summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial/logging.rst
diff options
context:
space:
mode:
authorAreski Belaid <areski@gmail.com>2015-05-01 00:38:58 +0200
committerMichael Merickel <michael@merickel.org>2015-04-30 18:28:57 -0500
commita4239799f7520729e395210ba4f69d57060d723b (patch)
tree14f0e37bc300048fc4a190f7140455c7732e83ff /docs/quick_tutorial/logging.rst
parentf9dd376581bdd4b45a28cfffafc2f08343f7c5d0 (diff)
downloadpyramid-a4239799f7520729e395210ba4f69d57060d723b.tar.gz
pyramid-a4239799f7520729e395210ba4f69d57060d723b.tar.bz2
pyramid-a4239799f7520729e395210ba4f69d57060d723b.zip
Update logging.rst
The point 5 from this tutorial http://docs.pylonsproject.org/projects/pyramid/en/latest/quick_tutorial/logging.html mention that we should see a debug message. This appears before any needed changes in `development.ini`, thus this patch intend to change the order and add an extra point to put forward changes in the ini file.
Diffstat (limited to 'docs/quick_tutorial/logging.rst')
-rw-r--r--docs/quick_tutorial/logging.rst19
1 files changed, 10 insertions, 9 deletions
diff --git a/docs/quick_tutorial/logging.rst b/docs/quick_tutorial/logging.rst
index e07d23d6d..82cfbe3c3 100644
--- a/docs/quick_tutorial/logging.rst
+++ b/docs/quick_tutorial/logging.rst
@@ -42,6 +42,12 @@ Steps
.. literalinclude:: logging/tutorial/views.py
:linenos:
+#. Finally let's edit ``development.ini`` configuration file
+ to enable logging for our Pyramid application:
+
+ .. literalinclude:: logging/development.ini
+ :language: ini
+
#. Make sure the tests still pass:
.. code-block:: bash
@@ -61,15 +67,10 @@ Steps
Analysis
========
-Our ``development.ini`` configuration file wires up Python standard
-logging for our Pyramid application:
-
-.. literalinclude:: logging/development.ini
- :language: ini
-
-In this, our ``tutorial`` Python package is setup as a logger
-and configured to log messages at a ``DEBUG`` or higher level. When you
-visit http://localhost:6543 your console will now show::
+In our configuration file ``development.ini``, our ``tutorial`` Python
+package is setup as a logger and configured to log messages at a
+``DEBUG`` or higher level. When you visit http://localhost:6543 your
+console will now show::
2013-08-09 10:42:42,968 DEBUG [tutorial.views][MainThread] In home view