Skip to content

Commit bb64bc3

Browse files
[3.13] gh-137985: Correct description of Formatter's datefmt param in logging documentation (GH-138530) (GH-138566)
(cherry picked from commit 8368895) Co-authored-by: W. H. Wang <[email protected]>
1 parent cf62144 commit bb64bc3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Doc/library/logging.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,16 +671,15 @@ Formatter Objects
671671
which is just the logged message.
672672
:type fmt: str
673673

674-
:param datefmt: A format string in the given *style* for
675-
the date/time portion of the logged output.
674+
:param datefmt: A format string for the date/time portion of the logged output.
676675
If not specified, the default described in :meth:`formatTime` is used.
677676
:type datefmt: str
678677

679678
:param style: Can be one of ``'%'``, ``'{'`` or ``'$'`` and determines
680679
how the format string will be merged with its data: using one of
681680
:ref:`old-string-formatting` (``%``), :meth:`str.format` (``{``)
682681
or :class:`string.Template` (``$``). This only applies to
683-
*fmt* and *datefmt* (e.g. ``'%(message)s'`` versus ``'{message}'``),
682+
*fmt* (e.g. ``'%(message)s'`` versus ``'{message}'``),
684683
not to the actual log messages passed to the logging methods.
685684
However, there are :ref:`other ways <formatting-styles>`
686685
to use ``{``- and ``$``-formatting for log messages.

0 commit comments

Comments
 (0)