]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Docs: document 'manager' and '_log' attrs of logging.Logging (GH-108145) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 21 Aug 2023 11:16:53 +0000 (04:16 -0700)
committerGitHub <noreply@github.com>
Mon, 21 Aug 2023 11:16:53 +0000 (13:16 +0200)
Docs: document 'manager' and '_log' attrs of logging.Logging (GH-108145)
(cherry picked from commit f904aa4e1f6943e5bd9a8a73cf762f063e6fa247)

Authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Doc/library/logging.rst

index edec0e0cdfa99771a194c953718fa5a1e785a8d3..d369c53f0f919c967e9ad84e61677a3cc84b7e4f 100644 (file)
@@ -1015,6 +1015,14 @@ information into logging calls. For a usage example, see the section on
       'extra'. The return value is a (*msg*, *kwargs*) tuple which has the
       (possibly modified) versions of the arguments passed in.
 
+   .. attribute:: manager
+
+      Delegates to the underlying :attr:`!manager`` on *logger*.
+
+   .. attribute:: _log
+
+      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`,
    :meth:`~Logger.warning`, :meth:`~Logger.error`, :meth:`~Logger.exception`,