summaryrefslogtreecommitdiff
path: root/Doc/library/logging.rst
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2015-05-02 09:46:05 +0100
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2015-05-02 09:46:05 +0100
commit26f2e05f727840c65b42e1cb3aa0df649b258692 (patch)
tree5265a05449ab350293511118160d960ad1511eb6 /Doc/library/logging.rst
parentffae4b04c12c3a6c8e8568d1a99d77db970bb7ad (diff)
downloadcpython-26f2e05f727840c65b42e1cb3aa0df649b258692.tar.gz
Issue #24060: Made logging.Formatter documentation a little clearer.
Diffstat (limited to 'Doc/library/logging.rst')
-rw-r--r--Doc/library/logging.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 96861a7b9e..90fb9b06d1 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -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