diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-08-21 11:16:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-21 11:16:53 (GMT) |
commit | 9cd15cab772e9e6073b3074ab6ef85db83a0e40c (patch) | |
tree | 9b4510b67a840ea45a147315fdbc5b5c851dd0c1 | |
parent | f2cc00527efeb69497e4304e826dd3a518005d1a (diff) | |
download | cpython-9cd15cab772e9e6073b3074ab6ef85db83a0e40c.zip cpython-9cd15cab772e9e6073b3074ab6ef85db83a0e40c.tar.gz cpython-9cd15cab772e9e6073b3074ab6ef85db83a0e40c.tar.bz2 |
[3.12] Docs: document 'manager' and '_log' attrs of logging.Logging (GH-108145) (#108190)
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>
-rw-r--r-- | Doc/library/logging.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index edec0e0..d369c53 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -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`, |