response_logger¶
-
safir.logging.
response_logger
= <ContextVar name='response_logger'>¶ A context-local structlog logger.
This logger is set by the
safir.middleware.bind_logger
middleware.See also
Examples
Usage:
>>> logger = response_logger.get() >>> logger.info(key='value')