The Wayback Machine - https://web.archive.org/web/20210109221117/https://github.com/benoitc/gunicorn/issues/2328
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

--access-logformat for iso date with microseconds #2328

Open
thenewguy opened this issue May 6, 2020 · 2 comments
Open

--access-logformat for iso date with microseconds #2328

thenewguy opened this issue May 6, 2020 · 2 comments

Comments

@thenewguy
Copy link

@thenewguy thenewguy commented May 6, 2020

The docs do not give a format option for iso date with microseconds. Is this possible?

@thenewguy
Copy link
Author

@thenewguy thenewguy commented May 6, 2020

Or any format with resolution greater or equal to what you can do with nginx? Can't currently order logs correctly with logstash since nginx can output logs with msecs but gunicorn logs are only to the nearest whole second

@benoitc
Copy link
Owner

@benoitc benoitc commented May 22, 2020

you can pass your own access log pattern using the access_log_format setting. request Time can be given in microseconds using the D format. Dant can't be changed yet until you use your own logging_class.

I guess we can make this https://github.com/benoitc/gunicorn/blob/master/gunicorn/glogging.py#L353 customisable though. Would you mind open ing a PR for it?

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.