From: Vinay Sajip Date: Tue, 22 Jan 2013 13:10:58 +0000 (+0000) Subject: Updated logging HOWTO with a diagram. X-Git-Tag: v2.7.4rc1~164^2~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f2bd027a82ef1a5885059cde3a5ef1ae502d106;p=python Updated logging HOWTO with a diagram. --- diff --git a/Doc/howto/logging.rst b/Doc/howto/logging.rst index 666e08a7b3..1fed52f176 100644 --- a/Doc/howto/logging.rst +++ b/Doc/howto/logging.rst @@ -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 index 0000000000..a88382309a Binary files /dev/null and b/Doc/howto/logging_flow.png differ