-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Feature Request: Access Log #152
Comments
This is something that will require some analysis, but only after #25 is done |
We also would appreciate such feature |
+1. Also, please support JSON. |
For what it's worth, I added some middleware for my web app and got what I was hoping plus more with color and all to highlight abnormalities (high latency, size, etc). Just in case others are waiting on something like this to adopt the server. Rolling your own isn't too bad. It's not an exact replica of the format of gunicorn but I didn't want that anyway. |
@mikeckennedy looks great! Can you share a code example? 🙏 |
Hi @nkhitrov I'm happy to share. Every web framework is a bit different. That log is from Pyramid so is handled through their "Tweens" but more general plugs into whatever middleware stack there is. Here's what generated that out put. I really like the coloring of errors and slow requests differently, etc. https://gist.github.com/mikeckennedy/6e4f7b9e8bf3771c4b0b5cee6e03b29a |
+1 |
Is it within your vision for the project to have an access log similar to Gunicorn's default?
Funding
The text was updated successfully, but these errors were encountered: