From 2901e3c84faf84d1f96fc0b567a27315fa87149f Mon Sep 17 00:00:00 2001 From: Tom Kuson Date: Tue, 28 Oct 2025 19:04:26 +0000 Subject: [PATCH] Add exc_text to LogRecord attributes table --- Doc/library/logging.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 1a90fbd8bda109..f28f9f42f7171d 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 | Cached formatted exception information. This | +| | format this yourself. | is set when :meth:`Formatter.formatException` | +| | | is called, or ``None`` if no exception has | +| | | occurred. | ++----------------+-------------------------+-----------------------------------------------+ | filename | ``%(filename)s`` | Filename portion of ``pathname``. | +----------------+-------------------------+-----------------------------------------------+ | funcName | ``%(funcName)s`` | Name of function containing the logging call. |