]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #24060: Made logging.Formatter documentation a little clearer.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 2 May 2015 08:42:24 +0000 (09:42 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 2 May 2015 08:42:24 +0000 (09:42 +0100)
Doc/library/logging.rst

index 5e21474812cba8f52a92e20da38922bda2cbbb7e..9f778f58ec44b6fcd70a2a982d1a7daa00a419e9 100644 (file)
@@ -440,7 +440,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