]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-140717: Add `exc_text` to LogRecord attributes table (GH-140718)
authorTom Kuson <mail@tjkuson.me>
Wed, 24 Dec 2025 17:30:20 +0000 (17:30 +0000)
committerGitHub <noreply@github.com>
Wed, 24 Dec 2025 17:30:20 +0000 (17:30 +0000)
Doc/library/logging.rst

index 0cf5b1c0d9bc3eed1d076efa8f6976b677c55e4d..d17f36bc7131d6fcaad25760ff9d2d4bc65f3215 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. |