diff options
| author | Chris McDonough <chrism@plope.com> | 2015-05-19 10:14:13 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2015-05-19 10:14:13 -0400 |
| commit | 61889c275a2f80d36ac903503185942c5573446f (patch) | |
| tree | c5a11fe6d7b908b6557f1799516ead3355c56ef6 /docs/quick_tutorial/logging.rst | |
| parent | d2c49d66399e8caa0509822cab189c04d3f7ec35 (diff) | |
| parent | d43ebd35f288edddb6df9bef3d671735e1dfb124 (diff) | |
| download | pyramid-61889c275a2f80d36ac903503185942c5573446f.tar.gz pyramid-61889c275a2f80d36ac903503185942c5573446f.tar.bz2 pyramid-61889c275a2f80d36ac903503185942c5573446f.zip | |
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/quick_tutorial/logging.rst')
| -rw-r--r-- | docs/quick_tutorial/logging.rst | 19 |
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 |
