]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-140717: Add `exc_text` to LogRecord attributes table (GH-140718) (GH-143151)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 25 Dec 2025 12:41:24 +0000 (13:41 +0100)
committerGitHub <noreply@github.com>
Thu, 25 Dec 2025 12:41:24 +0000 (12:41 +0000)
Co-authored-by: Tom Kuson <mail@tjkuson.me>
Doc/library/logging.rst

index c8552befbbfe96dd5c060e68510fadfc775670e6..6b7d858c182cee0aec5a08c4276f79db2e2a1b3c 100644 (file)
@@ -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. |