From 3925a9894e50baa7aeab35a858990b4c42b4f9bc Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Sat, 18 Aug 2018 20:07:44 +0100 Subject: [PATCH] Fixed bpo-34415: updated logging.Formatter docstring. --- Lib/logging/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 29a7d464decf98..a4a950dc4e2c8d 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