Skip to content

Commit

Permalink
bpo-34415: Updated logging.Formatter docstring. (GH-8811) (GH-8816)
Browse files Browse the repository at this point in the history
(cherry picked from commit d3d3171)
  • Loading branch information
miss-islington authored and vsajip committed Aug 19, 2018
1 parent fbd0a14 commit fed8718
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/logging/__init__.py
Expand Up @@ -431,7 +431,8 @@ class Formatter(object):
responsible for converting a LogRecord to (usually) a string which can
be interpreted by either a human or an external system. The base Formatter
allows a formatting string to be specified. If none is supplied, the
default value of "%s(message)" is used.
the style-dependent default value, "%(message)s", "{message}", or
"${message}", is used.
The Formatter can be initialized with a format string which makes use of
knowledge of the LogRecord attributes - e.g. the default value mentioned
Expand Down

0 comments on commit fed8718

Please sign in to comment.