https://github.com/python/cpython/commit/84b7e6970f4252ec6b82f50997e880662ec0a146
commit: 84b7e6970f4252ec6b82f50997e880662ec0a146
branch: main
author: Tom Kuson <[email protected]>
committer: vsajip <[email protected]>
date: 2025-12-24T17:30:20Z
summary:
gh-140717: Add `exc_text` to LogRecord attributes table (GH-140718)
files:
M Doc/library/logging.rst
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 0cf5b1c0d9bc3e..d17f36bc7131d6 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -1011,6 +1011,11 @@ the options available to you.
| exc_info | You shouldn't need to | Exception tuple (à la
``sys.exc_info``) or, |
| | format this yourself. | if no exception has occurred,
``None``. |
+----------------+-------------------------+-----------------------------------------------+
+| exc_text | You shouldn't need to | Exception information formatted
as a string. |
+| | format this yourself. | This is set when
:meth:`Formatter.format` is |
+| | | invoked, or ``None`` if no
exception has |
+| | | occurred.
|
++----------------+-------------------------+-----------------------------------------------+
| filename | ``%(filename)s`` | Filename portion of ``pathname``.
|
+----------------+-------------------------+-----------------------------------------------+
| funcName | ``%(funcName)s`` | Name of function containing the
logging call. |
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]