From: Tom Kuson Date: Wed, 24 Dec 2025 17:30:20 +0000 (+0000) Subject: gh-140717: Add `exc_text` to LogRecord attributes table (GH-140718) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84b7e6970f4252ec6b82f50997e880662ec0a146;p=thirdparty%2FPython%2Fcpython.git gh-140717: Add `exc_text` to LogRecord attributes table (GH-140718) --- diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 0cf5b1c0d9bc..d17f36bc7131 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. |