Skip to content

Commit fed8718

Browse files
miss-islingtonvsajip
authored andcommitted
bpo-34415: Updated logging.Formatter docstring. (GH-8811) (GH-8816)
(cherry picked from commit d3d3171)
1 parent fbd0a14 commit fed8718

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/logging/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,8 @@ class Formatter(object):
431431
responsible for converting a LogRecord to (usually) a string which can
432432
be interpreted by either a human or an external system. The base Formatter
433433
allows a formatting string to be specified. If none is supplied, the
434-
default value of "%s(message)" is used.
434+
the style-dependent default value, "%(message)s", "{message}", or
435+
"${message}", is used.
435436
436437
The Formatter can be initialized with a format string which makes use of
437438
knowledge of the LogRecord attributes - e.g. the default value mentioned

0 commit comments

Comments
 (0)