We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Unless I've missed something, it looks like it isn't currently possible to configure Uvicorn to output the HTTP Referer header in the access logs:
uvicorn/uvicorn/logging.py
Lines 109 to 132 in e77e596
This would be really useful for me because I'm trying to figure out where traffic to my sites comes from without running Google Analytics!
The text was updated successfully, but these errors were encountered:
you're correct, it should be in the socpe["headers"] if I'm not mistaken so that sounds feasible
Sorry, something went wrong.
I recommend using a middleware to create the access logs, and disable the uvicorn.access logger.
uvicorn.access
This project can be used as inspiration: https://github.com/Kludex/asgi-logger.
PR is welcome to improve the documentation here. About the access logger formatter discussion, we'll continue on #527.
Successfully merging a pull request may close this issue.
Unless I've missed something, it looks like it isn't currently possible to configure Uvicorn to output the HTTP Referer header in the access logs:
uvicorn/uvicorn/logging.py
Lines 109 to 132 in e77e596
This would be really useful for me because I'm trying to figure out where traffic to my sites comes from without running Google Analytics!
The text was updated successfully, but these errors were encountered: