-
-
Notifications
You must be signed in to change notification settings - Fork 762
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
Passing access_log_class option to aiohttp #807
Labels
Comments
lucas03
changed the title
Passing access_log_class to aiohttp
Passing access_log_class option to aiohttp
Dec 2, 2018
@dutradda do you know how to do this? |
I found in code that you can do this doing: app.run(port=8080, access_log=your_access_log) |
I saw this, but I am not running app, gunicorn is AFAIK. But I guess I did not dig deep enough here. |
If I wanna sacrifice slower app for gunicorn perks? |
Yea, it's your choose, sorry. |
OK, I'm resolving this issue. Thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I wanna pass custom formatting to access logs. I could not find an option to do that.
gunicorn config:
app.py:
custom access log class:
running server ->
gunicorn kw.score_machine.app --config=.misc/gunicorn_config.py
. FYI: There is related issue toaccess_log_class
in aiohttp.Expected behaviour
I could just put it to options as
access_log_class=AccessLogger
orhandler_args={ 'access_log_class': AccessLogger}
Actual behaviour
I guess it's not supported?
Steps to reproduce
Additional info:
Output of the commands:
The text was updated successfully, but these errors were encountered: