mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[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 f904aa4e1f
)
Authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
This commit is contained in:
parent
f2cc00527e
commit
9cd15cab77
1 changed files with 8 additions and 0 deletions
|
@ -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`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue