# HG changeset patch # User Georg Brandl # Date 1308078595 -7200 # Node ID dd775b1561ba284a2434877ac06e6fc08980dddb # Parent 23e14af406dfa02e1f23771e8c6761bd0f11bd90 Fix markup. diff -r 23e14af406df -r dd775b1561ba Doc/library/logging.rst --- a/Doc/library/logging.rst Tue Jun 14 10:06:41 2011 -0500 +++ b/Doc/library/logging.rst Tue Jun 14 21:09:55 2011 +0200 @@ -462,17 +462,17 @@ 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)