summaryrefslogtreecommitdiff
path: root/docs/narr/logging.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/narr/logging.rst')
-rw-r--r--docs/narr/logging.rst14
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