From c834a4c713f2fb55de1658bffd77d8ef070cf2d2 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Fri, 24 Mar 2023 08:08:48 -0700 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 9390f065fb2..6c47b9e206c 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.