- class safir.dependencies.logger.LoggerDependency#
Provides a structlog logger configured with request information.
The following additional information will be included:
A UUID for the request
The method and URL of the request
The IP address of the client
User-Agentheader of the request, if any.
The last three pieces of information will be added using naming consistent with the expectations of Google Log Explorer so that the request information will be liftedn into the appropriate JSON fields for complex log queries.
Return a logger bound with request information.