summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-10-31 20:25:21 (GMT)
committerGitHub <noreply@github.com>2021-10-31 20:25:21 (GMT)
commitda04bef5f7bcbce48e7e1b8c268b8899a0a42140 (patch)
treec042f80fdfab9ed8e41d5bece550977e0cc8c4bf /Doc
parentb04b307e0ebad0d9c7cc311fe6018b8d31b2ac8d (diff)
downloadcpython-da04bef5f7bcbce48e7e1b8c268b8899a0a42140.zip
cpython-da04bef5f7bcbce48e7e1b8c268b8899a0a42140.tar.gz
cpython-da04bef5f7bcbce48e7e1b8c268b8899a0a42140.tar.bz2
[3.9] Move field width to the right field (GH-29344) (GH-29350)
Co-authored-by: Olaf van der Spek <olafvdspek@gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/logging.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 1a4c84e..e72a898 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -203,7 +203,7 @@ is the module's name in the Python package namespace.
attributes can then be used as you like. For example, they could be
incorporated into logged messages. For example::
- FORMAT = '%(asctime)-15s %(clientip)s %(user)-8s %(message)s'
+ FORMAT = '%(asctime)s %(clientip)-15s %(user)-8s %(message)s'
logging.basicConfig(format=FORMAT)
d = {'clientip': '192.168.0.1', 'user': 'fbloggs'}
logger = logging.getLogger('tcpserver')
@@ -993,7 +993,7 @@ functions.
be used as you like. For example, they could be incorporated into logged
messages. For example::
- FORMAT = '%(asctime)-15s %(clientip)s %(user)-8s %(message)s'
+ FORMAT = '%(asctime)s %(clientip)-15s %(user)-8s %(message)s'
logging.basicConfig(format=FORMAT)
d = {'clientip': '192.168.0.1', 'user': 'fbloggs'}
logging.warning('Protocol problem: %s', 'connection reset', extra=d)