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

How to log time of response to access log? #606

Closed
tonal opened this issue Apr 2, 2020 · 4 comments
Closed

How to log time of response to access log? #606

tonal opened this issue Apr 2, 2020 · 4 comments

Comments

@tonal
Copy link

tonal commented Apr 2, 2020

How to log time of response to access log?

@tomchristie
Copy link
Member

You'd probably want to look into adding middleware if you want to monitor response timing and similar information.

The chat room is a useful place for usage questions... https://gitter.im/encode/community

@lambdaq
Copy link

lambdaq commented Nov 16, 2021

response time in log should be natively supported rather than a user middleware. It's a vital metric in most API services.

@Kludex
Copy link
Sponsor Member

Kludex commented Nov 16, 2021

Yeah, I'm aware. There are PRs changing our logger setup. In the meantime, you can check the implementation (or use) https://github.com/Kludex/asgi-logger

@lambdaq
Copy link

lambdaq commented Nov 16, 2021

#527

Found this for the interested. Should be enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants