Sanic has access logging but in fact it logs the response, that is, it fires a message when the request processing has been already completed.
But is it possible to log the request's start, before the user-defined middleware/handler is called?
Sanic has access logging but in fact it logs the response, that is, it fires a message when the request processing has been already completed.
But is it possible to log the request's start, before the user-defined middleware/handler is called?
Yes, to log something as early as possible, you can do this:
See docs on signals