From fd3c8c2044a2c70e2c48937c0bd0a69e551d66ff Mon Sep 17 00:00:00 2001 From: Amin Alaee Date: Fri, 24 Mar 2023 16:00:32 +0100 Subject: [PATCH] gh-102873: logging.LogRecord docs: improve description of `msg` parameter (GH-102875) (cherry picked from commit f2e5a6ee628502d307a97f587788d7022a200229) Co-authored-by: Amin Alaee Co-authored-by: Alex Waygood --- Doc/library/logging.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 13683c0766a3de..79a8fd94ff8743 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -796,8 +796,9 @@ wire). :type lineno: int :param msg: The event description message, - which can be a %-format string with placeholders for variable data. - :type msg: str + which can be a %-format string with placeholders for variable data, + or an arbitrary object (see :ref:`arbitrary-object-messages`). + :type msg: typing.Any :param args: Variable data to merge into the *msg* argument to obtain the event description.