-
-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement access log format #1191
Conversation
…access-log-format
It'd be really nice to get this merged. Would save a lot of overengineering to add custom headers to access log. Is there any workaround as of now for this use-case? |
Yep, erasing the current "uvicorn.access" logger, creating a new one, using a middleware to collect and print the new data. You can check a draft here: https://github.com/Kludex/uvicorn-logger |
Conceptually, this PR is wrong. The |
Check comments on: Kludex#5Unfortunately, I've deleted my fork, and lost all the comments I made. There were a lot of them! 😢There's still an issue: my idea was to not remove the default formatter, but I'm unable to make it work with them.
I need help here. I've been on this problem for some time now, and the values in the
recordcopy
seems correct, but I lost the default colors...