]> granicus.if.org Git - python/commitdiff
Updated logging HOWTO with a diagram.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Tue, 22 Jan 2013 13:12:34 +0000 (13:12 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Tue, 22 Jan 2013 13:12:34 +0000 (13:12 +0000)
Doc/howto/logging.rst
Doc/howto/logging_flow.png [new file with mode: 0755]

index c2a13d9720e93fa5b0be9781eb5db300aa907beb..79f1336debacb49dc2c952d191f4e85ce3d045bf 100644 (file)
@@ -330,6 +330,9 @@ of components: loggers, handlers, filters, and formatters.
   to output.
 * Formatters specify the layout of log records in the final output.
 
+Log event information is passed between loggers, handlers, filters and
+formatters in a :class:`LogRecord` instance.
+
 Logging is performed by calling methods on instances of the :class:`Logger`
 class (hereafter called :dfn:`loggers`). Each instance has a name, and they are
 conceptually arranged in a namespace hierarchy using dots (periods) as
@@ -374,6 +377,13 @@ You can change this by passing a format string to :func:`basicConfig` with the
 *format* keyword argument. For all options regarding how a format string is
 constructed, see :ref:`formatter-objects`.
 
+Logging Flow
+^^^^^^^^^^^^
+
+The flow of log event information in loggers and handlers is illustrated in the
+following diagram.
+
+.. image:: logging_flow.png
 
 Loggers
 ^^^^^^^
diff --git a/Doc/howto/logging_flow.png b/Doc/howto/logging_flow.png
new file mode 100755 (executable)
index 0000000..a883823
Binary files /dev/null and b/Doc/howto/logging_flow.png differ