Searched refs:LoggerAdapter (Results 1 – 16 of 16) sorted by relevance
/external/python/cpython2/Doc/howto/ |
D | logging-cookbook.rst | 484 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/cpython2/Doc/library/ |
D | logging.rst | 697 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/howto/ |
D | logging-cookbook.rst | 567 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/cpython3/Doc/library/ |
D | logging.rst | 862 LoggerAdapter Objects 865 :class:`LoggerAdapter` instances are used to conveniently pass contextual 869 .. class:: LoggerAdapter(logger, extra) 871 Returns an instance of :class:`LoggerAdapter` initialized with an 882 In addition to the above, :class:`LoggerAdapter` supports the following 894 to :class:`LoggerAdapter`. These methods delegate to the underlying logger.
|
/external/python/cpython2/Lib/logging/ |
D | __init__.py | 1408 class LoggerAdapter(object): class
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.7b1.rst | 359 method to LoggerAdapter.
|
D | 2.6a1.rst | 1575 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__.py | 1748 class LoggerAdapter(object): class
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.6.4rc1.rst | 513 The ``manager`` property on LoggerAdapter objects is now properly settable.
|
D | 3.6.3rc1.rst | 299 LoggerAdapter objects can now be nested.
|
D | 3.7.0a3.rst | 981 The ``manager`` property on LoggerAdapter objects is now properly settable.
|
D | 3.7.0a1.rst | 1588 LoggerAdapter objects can now be nested.
|
/external/python/cpython3/Lib/test/ |
D | test_logging.py | 189 INF = logging.LoggerAdapter(logging.getLogger("INF"), {}) 4707 self.adapter = logging.LoggerAdapter(logger=self.logger, extra=None) 4766 class Adapter(logging.LoggerAdapter):
|
/external/python/cpython3/Doc/whatsnew/ |
D | 2.7.rst | 535 * The :class:`~logging.LoggerAdapter` class gained an 536 :meth:`~logging.LoggerAdapter.isEnabledFor` method that takes a
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.7.rst | 535 * The :class:`~logging.LoggerAdapter` class gained an 536 :meth:`~logging.LoggerAdapter.isEnabledFor` method that takes a
|
/external/python/cpython3/Misc/ |
D | HISTORY | 12038 - 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.
|