summaryrefslogtreecommitdiffstats
path: root/Doc/library/logging.rst
diff options
context:
space:
mode:
authorjackh-ncl <1750152+jackh-ncl@users.noreply.github.com>2022-05-26 08:30:51 (GMT)
committerGitHub <noreply@github.com>2022-05-26 08:30:51 (GMT)
commitcc377063ef3ef99edce00e0c706809d9510e2bed (patch)
tree79b7df791bf0f18724d2f2fd078f4ca7ca426250 /Doc/library/logging.rst
parent518595652759462b13904df767f69b8cc2c61143 (diff)
downloadcpython-cc377063ef3ef99edce00e0c706809d9510e2bed.zip
cpython-cc377063ef3ef99edce00e0c706809d9510e2bed.tar.gz
cpython-cc377063ef3ef99edce00e0c706809d9510e2bed.tar.bz2
gh-91513: Add 'asyncio' taskName to logging LogRecord attributes. (GH-93193)
Diffstat (limited to 'Doc/library/logging.rst')
-rw-r--r--Doc/library/logging.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 3310c73..ac86bc8 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -872,10 +872,14 @@ the options available to you.
+----------------+-------------------------+-----------------------------------------------+
| threadName | ``%(threadName)s`` | Thread name (if available). |
+----------------+-------------------------+-----------------------------------------------+
+| taskName | ``%(taskName)s`` | :class:`asyncio.Task` name (if available). |
++----------------+-------------------------+-----------------------------------------------+
.. versionchanged:: 3.1
*processName* was added.
+.. versionchanged:: 3.12
+ *taskName* was added.
.. _logger-adapter: