Lines Matching refs:LoggerAdapter
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
1142 If you prefer, you can use a :class:`LoggerAdapter` to achieve a similar effect
1155 class StyleAdapter(logging.LoggerAdapter):