Closes #24060: Merged documentation update from 3.4.

This commit is contained in:
Vinay Sajip 2015-05-02 09:47:28 +01:00
commit 3b4d30a27b
1 changed files with 3 additions and 1 deletions

View File

@ -486,7 +486,9 @@ Formatter Objects
responsible for converting a :class:`LogRecord` to (usually) a string which can
be interpreted by either a human or an external system. The base
:class:`Formatter` allows a formatting string to be specified. If none is
supplied, the default value of ``'%(message)s'`` is used.
supplied, the default value of ``'%(message)s'`` is used, which just includes
the message in the logging call. To have additional items of information in the
formatted output (such as a timestamp), keep reading.
A Formatter can be initialized with a format string which makes use of knowledge
of the :class:`LogRecord` attributes - such as the default value mentioned above