diff options
| author | Chris McDonough <chrism@plope.com> | 2011-08-13 01:55:45 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-08-13 01:55:45 -0400 |
| commit | bfdbcf4c25e28216060834b648a022045d88146b (patch) | |
| tree | 389e09ffd87f56d7540b0c80419fa6cf2159facb /docs/narr | |
| parent | 1ae7af86d5d4898788ff64b46e887a06c47e69ea (diff) | |
| download | pyramid-bfdbcf4c25e28216060834b648a022045d88146b.tar.gz pyramid-bfdbcf4c25e28216060834b648a022045d88146b.tar.bz2 pyramid-bfdbcf4c25e28216060834b648a022045d88146b.zip | |
mention pyramid_exclog
Diffstat (limited to 'docs/narr')
| -rw-r--r-- | docs/narr/logging.rst | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/docs/narr/logging.rst b/docs/narr/logging.rst index 120944fac..375ab820c 100644 --- a/docs/narr/logging.rst +++ b/docs/narr/logging.rst @@ -265,7 +265,7 @@ To capture log output to a separate file, use a `FileHandler level = INFO formatter = generic -Before it's recognized, it needs to be added to the list of Handlers: +Before it's recognized, it needs to be added to the list of handlers: .. code-block:: ini @@ -283,7 +283,15 @@ and finally utilized by a logger. These final 3 lines of configuration directs all of the root logger's output to the ``myapp.log`` as well as the console. -Request logging with Paste's TransLogger +Logging Exceptions +------------------ + +To log (or email) exceptions generated by your :app:`Pyramid` application, +use the :term:`pyramid_exclog` package. Details about its configuration are +in its `documentation +<https://docs.pylonsproject.org/projects/pyramid_exclog/dev/>`_. + +Request Logging with Paste's TransLogger ---------------------------------------- Paste provides the `TransLogger @@ -377,7 +385,7 @@ formatter that passes-through the log messages as is: [formatter_accesslog] format = %(message)s -Then wire this new ``accesslog`` Formatter into the FileHandler: +Then wire this new ``accesslog`` formatter into the FileHandler: .. code-block:: ini |
