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

Skip to content

Commit bbd95a9

Browse files
committed
Issue #24060: Made logging.Formatter documentation a little clearer.
1 parent 755640b commit bbd95a9

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
@@ -481,7 +481,9 @@ Formatter Objects
481481
responsible for converting a :class:`LogRecord` to (usually) a string which can
482482
be interpreted by either a human or an external system. The base
483483
:class:`Formatter` allows a formatting string to be specified. If none is
484-
supplied, the default value of ``'%(message)s'`` is used.
484+
supplied, the default value of ``'%(message)s'`` is used, which just includes
485+
the message in the logging call. To have additional items of information in the
486+
formatted output (such as a timestamp), keep reading.
485487

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

0 commit comments

Comments
 (0)