summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend@python.org>2023-08-20 16:01:10 (GMT)
committerGitHub <noreply@github.com>2023-08-20 16:01:10 (GMT)
commitf904aa4e1f6943e5bd9a8a73cf762f063e6fa247 (patch)
treedd213254a5effc7bd3fff8beee1322d6dfa2e8cd
parenta390ec20f5a85b9c16e8708f117667783d08863c (diff)
downloadcpython-f904aa4e1f6943e5bd9a8a73cf762f063e6fa247.zip
cpython-f904aa4e1f6943e5bd9a8a73cf762f063e6fa247.tar.gz
cpython-f904aa4e1f6943e5bd9a8a73cf762f063e6fa247.tar.bz2
Docs: document 'manager' and '_log' attrs of logging.Logging (#108145)
Authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
-rw-r--r--Doc/library/logging.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 97a0b82..cf3dcb9 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -1019,6 +1019,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`,