summaryrefslogtreecommitdiffstats
path: root/Lib/logging
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2018-08-19 04:14:19 (GMT)
committerGitHub <noreply@github.com>2018-08-19 04:14:19 (GMT)
commitd3d3171da895d8cb880f23fae6be778f0ac23be7 (patch)
tree6328d9546bbe9a7d0ce50312c5353a15590142d5 /Lib/logging
parent93b5655c040a33f9ba4cdbd303afc8398c8413c7 (diff)
downloadcpython-d3d3171da895d8cb880f23fae6be778f0ac23be7.zip
cpython-d3d3171da895d8cb880f23fae6be778f0ac23be7.tar.gz
cpython-d3d3171da895d8cb880f23fae6be778f0ac23be7.tar.bz2
bpo-34415: Updated logging.Formatter docstring. (GH-8811)
Diffstat (limited to 'Lib/logging')
-rw-r--r--Lib/logging/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index 29a7d46..a4a950d 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -424,7 +424,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