summaryrefslogtreecommitdiffstats
path: root/Doc/library/logging.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-06-14 19:09:55 (GMT)
committerGeorg Brandl <georg@python.org>2011-06-14 19:09:55 (GMT)
commite10b5e1dbb71b424fc614d9da3cb2e280ba5e0fc (patch)
treed24166e03a14ea0d1d0fd3bc10150b8ecb148e3b /Doc/library/logging.rst
parent4ff1a414f8a755036f889937d2703d6a7388904f (diff)
downloadcpython-e10b5e1dbb71b424fc614d9da3cb2e280ba5e0fc.zip
cpython-e10b5e1dbb71b424fc614d9da3cb2e280ba5e0fc.tar.gz
cpython-e10b5e1dbb71b424fc614d9da3cb2e280ba5e0fc.tar.bz2
Fix markup.
Diffstat (limited to 'Doc/library/logging.rst')
-rw-r--r--Doc/library/logging.rst22
1 files changed, 11 insertions, 11 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 5070487..68cfa6e 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -462,17 +462,17 @@ The useful mapping keys in a :class:`LogRecord` are given in the section on
attribute in the ``Formatter`` class.
.. versionchanged:: 3.3
- Previously, the default ISO 8601 format was hard-coded as in this
- example: ``2010-09-06 22:38:15,292`` where the part before the comma is
- handled by a strptime format string (``'%Y-%m-%d %H:%M:%S'``), and the
- part after the comma is a millisecond value. Because strptime does not
- have a format placeholder for milliseconds, the millisecond value is
- appended using another format string, ``'%s,%03d'`` – and both of these
- format strings have been hardcoded into this method. With the change,
- these strings are defined as class-level attributes which can be
- overridden at the instance level when desired. The names of the
- attributes are ``default_time_format`` (for the strptime format string)
- and ``default_msec_format`` (for appending the millisecond value).
+ Previously, the default ISO 8601 format was hard-coded as in this
+ example: ``2010-09-06 22:38:15,292`` where the part before the comma is
+ handled by a strptime format string (``'%Y-%m-%d %H:%M:%S'``), and the
+ part after the comma is a millisecond value. Because strptime does not
+ have a format placeholder for milliseconds, the millisecond value is
+ appended using another format string, ``'%s,%03d'`` – and both of these
+ format strings have been hardcoded into this method. With the change,
+ these strings are defined as class-level attributes which can be
+ overridden at the instance level when desired. The names of the
+ attributes are ``default_time_format`` (for the strptime format string)
+ and ``default_msec_format`` (for appending the millisecond value).
.. method:: formatException(exc_info)