Skip to content

Commit 1d88cec

Browse files
committed
Issue #24060: Made logging.Formatter documentation a little clearer.
1 parent 27159a5 commit 1d88cec

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Doc/library/logging.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,9 @@ Formatter Objects
440440
responsible for converting a :class:`LogRecord` to (usually) a string which can
441441
be interpreted by either a human or an external system. The base
442442
:class:`Formatter` allows a formatting string to be specified. If none is
443-
supplied, the default value of ``'%(message)s'`` is used.
443+
supplied, the default value of ``'%(message)s'`` is used, which just includes
444+
the message in the logging call. To have additional items of information in the
445+
formatted output (such as a timestamp), keep reading.
444446

445447
A Formatter can be initialized with a format string which makes use of knowledge
446448
of the :class:`LogRecord` attributes - such as the default value mentioned above

0 commit comments

Comments
 (0)