]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-34415: Updated logging.Formatter docstring. (GH-8811) (GH-8816)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 19 Aug 2018 07:19:32 +0000 (03:19 -0400)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 19 Aug 2018 07:19:32 +0000 (08:19 +0100)
(cherry picked from commit d3d3171da895d8cb880f23fae6be778f0ac23be7)

Lib/logging/__init__.py

index e2084f55050891ed6ddbb0a992971c7a0a62be10..386ed17782c056eaa7e1be0acbbd9752ad405e1f 100644 (file)
@@ -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