Lines Matching refs:LoggerAdapter
863 with logging event information is to use the :class:`LoggerAdapter` class.
870 When you create an instance of :class:`LoggerAdapter`, you pass it a
873 :class:`LoggerAdapter`, it delegates the call to the underlying instance of
876 :class:`LoggerAdapter`::
886 The :meth:`~LoggerAdapter.process` method of :class:`LoggerAdapter` is where the
900 you just need to subclass :class:`LoggerAdapter` and override
901 :meth:`~LoggerAdapter.process` to do what you need. Here is a simple example::
903 class CustomAdapter(logging.LoggerAdapter):
922 You don't need to pass an actual dict to a :class:`LoggerAdapter` - you could
943 'user' as in the ``LoggerAdapter`` example above. In that case, the same format
1730 If you prefer, you can use a :class:`LoggerAdapter` to achieve a similar effect
1743 class StyleAdapter(logging.LoggerAdapter):