[Python-checkins] bpo-34415: Updated logging.Formatter docstring. (GH-8811) (GH-8816)

Vinay Sajip webhook-mailer at python.org
Sun Aug 19 03:19:35 EDT 2018


https://github.com/python/cpython/commit/fed871835ee54f50cabcec6239271739ed4839f5
commit: fed871835ee54f50cabcec6239271739ed4839f5
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: 2018-08-19T08:19:32+01:00
summary:

bpo-34415: Updated logging.Formatter docstring. (GH-8811) (GH-8816)

(cherry picked from commit d3d3171da895d8cb880f23fae6be778f0ac23be7)

files:
M Lib/logging/__init__.py

diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index e2084f550508..386ed17782c0 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -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



More information about the Python-checkins mailing list