@@ -515,9 +515,8 @@ The useful mapping keys in a :class:`LogRecord` are given in the section on
515515 Returns a new instance of the :class: `Formatter ` class. The instance is
516516 initialized with a format string for the message as a whole, as well as a
517517 format string for the date/time portion of a message. If no *fmt * is
518- specified, ``'%(message)s' `` is used. If no *datefmt * is specified, an
519- ISO8601-like (or :rfc: `3339 `-like) date format is used. See the
520- :meth: `formatTime ` documentation for more details.
518+ specified, ``'%(message)s' `` is used. If no *datefmt * is specified, a format
519+ is used which is described in the :meth: `formatTime ` documentation.
521520
522521 The *style * parameter can be one of '%', '{' or '$' and determines how
523522 the format string will be merged with its data: using one of %-formatting,
@@ -557,8 +556,10 @@ The useful mapping keys in a :class:`LogRecord` are given in the section on
557556 formatters to provide for any specific requirement, but the basic behavior
558557 is as follows: if *datefmt * (a string) is specified, it is used with
559558 :func: `time.strftime ` to format the creation time of the
560- record. Otherwise, an ISO8601-like (or RDC 3339-like) format is used. The
561- resulting string is returned.
559+ record. Otherwise, the format '%Y-%m-%d %H:%M:%S,uuu' is used, where the
560+ uuu part is a millisecond value and the other letters are as per the
561+ :func: `time.strftime ` documentation. An example time in this format is
562+ ``2003-01-23 00:29:50,411 ``. The resulting string is returned.
562563
563564 This function uses a user-configurable function to convert the creation
564565 time to a tuple. By default, :func: `time.localtime ` is used; to change
@@ -569,8 +570,8 @@ The useful mapping keys in a :class:`LogRecord` are given in the section on
569570 attribute in the ``Formatter `` class.
570571
571572 .. versionchanged :: 3.3
572- Previously, the default ISO8601-like format was hard-coded as in this
573- example: ``2010-09-06 22:38:15,292 `` where the part before the comma is
573+ Previously, the default format was hard-coded as in this example:
574+ ``2010-09-06 22:38:15,292 `` where the part before the comma is
574575 handled by a strptime format string (``'%Y-%m-%d %H:%M:%S' ``), and the
575576 part after the comma is a millisecond value. Because strptime does not
576577 have a format placeholder for milliseconds, the millisecond value is
0 commit comments