Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f186911

Browse files
committed
Updated logging HOWTO with a diagram.
1 parent 52b3d34 commit f186911

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Doc/howto/logging.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ of components: loggers, handlers, filters, and formatters.
330330
to output.
331331
* Formatters specify the layout of log records in the final output.
332332

333+
Log event information is passed between loggers, handlers, filters and
334+
formatters in a :class:`LogRecord` instance.
335+
333336
Logging is performed by calling methods on instances of the :class:`Logger`
334337
class (hereafter called :dfn:`loggers`). Each instance has a name, and they are
335338
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
374377
*format* keyword argument. For all options regarding how a format string is
375378
constructed, see :ref:`formatter-objects`.
376379

380+
Logging Flow
381+
^^^^^^^^^^^^
382+
383+
The flow of log event information in loggers and handlers is illustrated in the
384+
following diagram.
385+
386+
.. image:: logging_flow.png
377387

378388
Loggers
379389
^^^^^^^

Doc/howto/logging_flow.png

48.5 KB
Loading

0 commit comments

Comments
 (0)