[Python-checkins] cpython (2.7): Issue #24060: Made logging.Formatter documentation a little clearer.

vinay.sajip python-checkins at python.org
Sat May 2 10:47:43 CEST 2015


https://hg.python.org/cpython/rev/5ce760e2cc59
changeset:   95834:5ce760e2cc59
branch:      2.7
parent:      95832:c17e29454447
user:        Vinay Sajip <vinay_sajip at yahoo.co.uk>
date:        Sat May 02 09:42:24 2015 +0100
summary:
  Issue #24060: Made logging.Formatter documentation a little clearer.

files:
  Doc/library/logging.rst |  4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)


diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -440,7 +440,9 @@
 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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list