You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can see it's still changing. A few months ago the behavior you desire was there by default and now it's not even possible to add headers to logs if I read it correctly. If I were you I'd not rely on uvicorn logs AT ALL but rather add a proxy server where you will have total control over it and much more. Then, send logs to a centralized server.
add ELK or something else where you can browse logs
Or just use 0.13.0 where I believe the response scope was logged.
Note I'm not an expert on this topic. If you come up with a solution to your problem, please let me know. I might be wrong about app/server layers and maybe it's possible to glue them together 🤷🏻♂️
My log now is:
I tried to add filter to log request-id and correlation-id to uvicorn.access but it raised
starlette_context.errors.ContextDoesNotExistError
.Is there a way to add context data to uvicorn.access log?
The text was updated successfully, but these errors were encountered: