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 the incoming requests and the response #575

Closed
matrixise opened this issue Oct 19, 2015 · 7 comments
Closed

how to log the incoming requests and the response #575

matrixise opened this issue Oct 19, 2015 · 7 comments
Labels

Comments

@matrixise
Copy link
Contributor

Hi all,

the web.Application class takes a logger in the constructor, but this one does not seem to work, because in debug mode, there is no message in the logger.

I have read the code of ServerHttpProtocol and we can specify the access_log logger, but this one is just used in the test.

What do you suggest if I want to see the logs ?

Thank you

@asvetlov
Copy link
Member

What do you expect from logger?
access logs or error reports?

@matrixise
Copy link
Contributor Author

just show the routes with the status code. just when I run the app in debug mode

@matrixise
Copy link
Contributor Author

Thanks @GMLudo if I specify the logger with make_handler, I have the logs.

Thanks

@ohsabry
Copy link

ohsabry commented Aug 22, 2016

@asvetlov is there a way to specify the the logger without calling make_handler? If not, what do you recommend as an access logger strategy for a gunicorn setup?

@asvetlov
Copy link
Member

Fixed by #1117

@lock
Copy link

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants