summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial/logging.rst
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2015-10-21 00:34:10 -0500
committerMichael Merickel <michael@merickel.org>2015-10-21 00:34:10 -0500
commit504027873ab0e1b15601e2d1900ef8a4469f6a43 (patch)
tree06e6cbf634a894dbce232c9dbb06324637a95a86 /docs/quick_tutorial/logging.rst
parentbf40a3920278b3e7a01ef5403196b35f45cfcb3c (diff)
parente1ec631ab2d470b1550640d21c28ddd1387f4045 (diff)
downloadpyramid-504027873ab0e1b15601e2d1900ef8a4469f6a43.tar.gz
pyramid-504027873ab0e1b15601e2d1900ef8a4469f6a43.tar.bz2
pyramid-504027873ab0e1b15601e2d1900ef8a4469f6a43.zip
Merge pull request #2020 from bertjwregeer/feature/configurable-view-deriver
Configurable View Deriver moving forward...
Diffstat (limited to 'docs/quick_tutorial/logging.rst')
-rw-r--r--docs/quick_tutorial/logging.rst23
1 files changed, 12 insertions, 11 deletions
diff --git a/docs/quick_tutorial/logging.rst b/docs/quick_tutorial/logging.rst
index e07d23d6d..5d29cd196 100644
--- a/docs/quick_tutorial/logging.rst
+++ b/docs/quick_tutorial/logging.rst
@@ -16,9 +16,9 @@ we might need to detect problems when other people use the site. We
need *logging*.
Fortunately Pyramid uses the normal Python approach to logging. The
-scaffold generated, in your ``development.ini``, has a number of lines that
+scaffold generated in your ``development.ini`` has a number of lines that
configure the logging for you to some reasonable defaults. You then see
-messages sent by Pyramid (for example, when a new request comes in.)
+messages sent by Pyramid, for example, when a new request comes in.
Objectives
==========
@@ -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