Skip to content
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

Closed
wants to merge 22 commits into from
Closed

Implement access log format #1191

wants to merge 22 commits into from

Conversation

Kludex
Copy link
Member

@Kludex Kludex commented Sep 18, 2021

Check comments on: Kludex#5 Unfortunately, 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...

@RohanMishra97
Copy link

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?
Thanks!😊

@Kludex
Copy link
Member Author

Kludex commented Sep 24, 2021

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

@Kludex Kludex added this to the Version 0.21.0 milestone Oct 29, 2022
@Kludex Kludex mentioned this pull request Dec 16, 2022
16 tasks
@Kludex
Copy link
Member Author

Kludex commented Mar 13, 2023

Conceptually, this PR is wrong. The AccessLogAtoms can't be used properly with the logger that we have, specifically the headers.

@Kludex Kludex closed this Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants