Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0f2bd027
Commit
0f2bd027
authored
Jan 22, 2013
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated logging HOWTO with a diagram.
parent
8a459d97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
Doc/howto/logging.rst
Doc/howto/logging.rst
+10
-0
Doc/howto/logging_flow.png
Doc/howto/logging_flow.png
+0
-0
No files found.
Doc/howto/logging.rst
View file @
0f2bd027
...
@@ -330,6 +330,9 @@ of components: loggers, handlers, filters, and formatters.
...
@@ -330,6 +330,9 @@ of components: loggers, handlers, filters, and formatters.
to output.
to output.
* Formatters specify the layout of log records in the final 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`
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
class (hereafter called :dfn:`loggers`). Each instance has a name, and they are
conceptually arranged in a namespace hierarchy using dots (periods) as
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
...
@@ -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
*format* keyword argument. For all options regarding how a format string is
constructed, see :ref:`formatter-objects`.
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
Loggers
^^^^^^^
^^^^^^^
...
...
Doc/howto/logging_flow.png
0 → 100755
View file @
0f2bd027
This diff was suppressed by a .gitattributes entry.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment