Skip to content

Commit d3d3171

Browse files
authored
bpo-34415: Updated logging.Formatter docstring. (GH-8811)
1 parent 93b5655 commit d3d3171

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
@@ -424,7 +424,8 @@ class Formatter(object):
424424
responsible for converting a LogRecord to (usually) a string which can
425425
be interpreted by either a human or an external system. The base Formatter
426426
allows a formatting string to be specified. If none is supplied, the
427-
default value of "%s(message)" is used.
427+
the style-dependent default value, "%(message)s", "{message}", or
428+
"${message}", is used.
428429
429430
The Formatter can be initialized with a format string which makes use of
430431
knowledge of the LogRecord attributes - e.g. the default value mentioned

0 commit comments

Comments
 (0)