bpo-34415: Updated logging.Formatter docstring. (GH-8811)
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 19 Aug 2018 04:14:19 +0000 (05:14 +0100)
committerGitHub <noreply@github.com>
Sun, 19 Aug 2018 04:14:19 +0000 (05:14 +0100)
Lib/logging/__init__.py

index 29a7d464decf98438f26d7cd56c0cfac0bc424c1..a4a950dc4e2c8db95afbb760fb398eeb09bd3c88 100644 (file)
@@ -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