From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 24 Mar 2023 15:07:46 +0000 (-0700) Subject: gh-102873: logging.LogRecord docs: improve description of `msg` parameter (GH-102875) X-Git-Tag: v3.10.11~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cbffc3ad38c2bb62a6a343c3c6ac57480f643767;p=thirdparty%2FPython%2Fcpython.git 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 --- diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 13683c0766a3..79a8fd94ff87 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.