Home
last modified time | relevance | path

Searched refs:LoggerAdapter (Results 1 – 16 of 16) sorted by relevance

/external/python/cpython2/Doc/howto/
Dlogging-cookbook.rst484 with logging event information is to use the :class:`LoggerAdapter` class.
491 When you create an instance of :class:`LoggerAdapter`, you pass it a
494 :class:`LoggerAdapter`, it delegates the call to the underlying instance of
497 :class:`LoggerAdapter`::
507 The :meth:`~LoggerAdapter.process` method of :class:`LoggerAdapter` is where the
521 you just need to subclass :class:`LoggerAdapter` and override
522 :meth:`~LoggerAdapter.process` to do what you need. Here is a simple example::
524 class CustomAdapter(logging.LoggerAdapter):
543 You don't need to pass an actual dict to a :class:`LoggerAdapter` - you could
564 'user' as in the ``LoggerAdapter`` example above. In that case, the same format
/external/python/cpython3/Doc/howto/
Dlogging-cookbook.rst567 with logging event information is to use the :class:`LoggerAdapter` class.
574 When you create an instance of :class:`LoggerAdapter`, you pass it a
577 :class:`LoggerAdapter`, it delegates the call to the underlying instance of
580 :class:`LoggerAdapter`::
590 The :meth:`~LoggerAdapter.process` method of :class:`LoggerAdapter` is where the
604 you just need to subclass :class:`LoggerAdapter` and override
605 :meth:`~LoggerAdapter.process` to do what you need. Here is a simple example::
607 class CustomAdapter(logging.LoggerAdapter):
626 You don't need to pass an actual dict to a :class:`LoggerAdapter` - you could
647 'user' as in the ``LoggerAdapter`` example above. In that case, the same format
[all …]
/external/python/cpython2/Doc/library/
Dlogging.rst697 LoggerAdapter Objects
700 :class:`LoggerAdapter` instances are used to conveniently pass contextual
707 .. class:: LoggerAdapter(logger, extra)
709 Returns an instance of :class:`LoggerAdapter` initialized with an
720 In addition to the above, :class:`LoggerAdapter` supports the following
728 The :meth:`~Logger.isEnabledFor` method was added to :class:`LoggerAdapter`.
/external/python/cpython3/Doc/library/
Dlogging.rst833 LoggerAdapter Objects
836 :class:`LoggerAdapter` instances are used to conveniently pass contextual
840 .. class:: LoggerAdapter(logger, extra)
842 Returns an instance of :class:`LoggerAdapter` initialized with an
853 In addition to the above, :class:`LoggerAdapter` supports the following
865 to :class:`LoggerAdapter`. These methods delegate to the underlying logger.
/external/python/cpython2/Lib/logging/
D__init__.py1408 class LoggerAdapter(object): class
/external/python/cpython2/Misc/NEWS.d/
D2.7b1.rst359 method to LoggerAdapter.
D2.6a1.rst1575 add LoggerAdapter convenience class to make it easier to add contextual
4826 added documentation for the new LoggerAdapter class.
/external/python/cpython3/Lib/logging/
D__init__.py1684 class LoggerAdapter(object): class
/external/python/cpython3/Lib/test/
Dtest_logging.py187 INF = logging.LoggerAdapter(logging.getLogger("INF"), {})
4120 self.adapter = logging.LoggerAdapter(logger=self.logger, extra=None)
4179 class Adapter(logging.LoggerAdapter):
/external/python/cpython3/Misc/NEWS.d/
D3.6.4rc1.rst518 The ``manager`` property on LoggerAdapter objects is now properly settable.
D3.6.3rc1.rst300 LoggerAdapter objects can now be nested.
D3.7.0a3.rst988 The ``manager`` property on LoggerAdapter objects is now properly settable.
D3.7.0a1.rst1589 LoggerAdapter objects can now be nested.
/external/python/cpython3/Doc/whatsnew/
D2.7.rst535 * The :class:`~logging.LoggerAdapter` class gained an
536 :meth:`~logging.LoggerAdapter.isEnabledFor` method that takes a
/external/python/cpython2/Doc/whatsnew/
D2.7.rst535 * The :class:`~logging.LoggerAdapter` class gained an
536 :meth:`~logging.LoggerAdapter.isEnabledFor` method that takes a
/external/python/cpython3/Misc/
DHISTORY12038 - logging: Added hasHandlers() method to Logger and LoggerAdapter.
12045 - logging: Changed LoggerAdapter implementation internally, to make it easier to
12049 getEffectiveLevel, hasHandlers and setLevel were added to LoggerAdapter.
12050 LoggerAdapter was introduced into the unit tests for logging.