From b5da2b726cf000e0726c45c36ec62069eec34d53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20Leh=C3=A9e?= Date: Thu, 18 Jan 2024 14:07:47 +0100 Subject: [PATCH 1/3] Fix double back quotes --- Doc/library/logging.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index acdeb88a546261..71f588180463c9 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -1021,11 +1021,11 @@ information into logging calls. For a usage example, see the section on .. attribute:: manager - Delegates to the underlying :attr:`!manager`` on *logger*. + Delegates to the underlying :attr:`!manager` on *logger*. .. attribute:: _log - Delegates to the underlying :meth:`!_log`` method on *logger*. + Delegates to the underlying :meth:`!_log` method on *logger*. In addition to the above, :class:`LoggerAdapter` supports the following methods of :class:`Logger`: :meth:`~Logger.debug`, :meth:`~Logger.info`, From d92dba90ff440337fd332c0f14178b91f864319b Mon Sep 17 00:00:00 2001 From: toxinu Date: Thu, 18 Jan 2024 14:10:53 +0100 Subject: [PATCH 2/3] Add Logger._log and Logger.manager documentation --- Doc/library/logging.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 71f588180463c9..4b4a416cca33f5 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -383,6 +383,15 @@ is the module's name in the Python package namespace. .. versionadded:: 3.2 + .. method:: Logger._log(level, msg, args, exc_info=None, extra=None, stack_info=False, stacklevel=1) + + Low-level logging routine which creates a :class:`~LogRecord` and then calls + all the handlers of this logger to handle the record. + + .. attribute:: manager + + The logger :class:`~Manager`. + .. versionchanged:: 3.7 Loggers can now be pickled and unpickled. From bd0bce9f8fb577be555e3ae755ad29e957d78a90 Mon Sep 17 00:00:00 2001 From: toxinu Date: Thu, 18 Jan 2024 14:23:01 +0100 Subject: [PATCH 3/3] Remove reference to undocumented Manager --- Doc/library/logging.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 4b4a416cca33f5..f8c726ef597ec1 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -390,7 +390,7 @@ is the module's name in the Python package namespace. .. attribute:: manager - The logger :class:`~Manager`. + The logger ``logging.Manager``. .. versionchanged:: 3.7 Loggers can now be pickled and unpickled.