response_logger

safir.logging.response_logger: ContextVar[BoundLoggerLazyProxy] = <ContextVar name='response_logger'>

A context-local structlog logger.

This logger is set by the safir.middleware.bind_logger middleware.

Examples

Usage:

>>> logger = response_logger.get()
>>> logger.info(key='value')