8000 [3.12] Docs: document 'manager' and '_log' attrs of logging.Logging (… · python/cpython@9cd15ca · GitHub
[go: up one dir, main page]

Skip to content

Commit 9cd15ca

Browse files
[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 f904aa4) Authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend@python.org>
1 parent f2cc005 commit 9cd15ca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Doc/library/logging.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,6 +1015,14 @@ information into logging calls. For a usage example, see the section on
10151015 81DE
'extra'. The return value is a (*msg*, *kwargs*) tuple which has the
10161016
(possibly modified) versions of the arguments passed in.
10171017

1018+
.. attribute:: manager
1019+
1020+
Delegates to the underlying :attr:`!manager`` on *logger*.
1021+
1022+
.. attribute:: _log
1023+
1024+
Delegates to the underlying :meth:`!_log`` method on *logger*.
1025+
10181026
In addition to the above, :class:`LoggerAdapter` supports the following
10191027
methods of :class:`Logger`: :meth:`~Logger.debug`, :meth:`~Logger.info`,
10201028
:meth:`~Logger.warning`, :meth:`~Logger.error`, :meth:`~Logger.exception`,

0 commit comments

Comments
 (0)
0