mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08:00
Issue #24060: Made logging.Formatter documentation a little clearer.
This commit is contained in:
parent
755640bf50
commit
bbd95a9361
@ -481,7 +481,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
|
||||
|
Loading…
Reference in New Issue
Block a user