]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-134360 Add processName attribute to `logging.Formatter` docstring (GH-134371)
authorSofia Toro <sofie.torch@outlook.com>
Wed, 21 May 2025 04:49:06 +0000 (00:49 -0400)
committerGitHub <noreply@github.com>
Wed, 21 May 2025 04:49:06 +0000 (05:49 +0100)
Lib/logging/__init__.py

index f2d1a02629d92be0741e6716b70282e4b88c940b..5c3c44249345f327fb9f1d16bb901a73f6e170c6 100644 (file)
@@ -591,6 +591,7 @@ class Formatter(object):
     %(threadName)s      Thread name (if available)
     %(taskName)s        Task name (if available)
     %(process)d         Process ID (if available)
+    %(processName)s     Process name (if available)
     %(message)s         The result of record.getMessage(), computed just as
                         the record is emitted
     """