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

Log request process time in seconds #669

Closed
fafhrd91 opened this issue Dec 9, 2015 · 7 comments
Closed

Log request process time in seconds #669

fafhrd91 opened this issue Dec 9, 2015 · 7 comments
Labels
Milestone

Comments

@fafhrd91
Copy link
Member

fafhrd91 commented Dec 9, 2015

It is not possible to log time in seconds, i.e. "0.004"

@fafhrd91
Copy link
Member Author

fafhrd91 commented Dec 9, 2015

this may work

def _format_D(args):
    return '%.6d' % round(args[4] * 1000000)

@asvetlov @redixin ?

@redixin
Copy link
Contributor

redixin commented Dec 9, 2015

%D is used for microseconds already. We may use %{UNIT}T (see apache docs http://httpd.apache.org/docs/2.2/mod/mod_log_config.html)

Something like %{floatseconds}T

But IMO it is much simpler to work with microseconds.

@fafhrd91
Copy link
Member Author

it is not possible to see in logs fraction of seconds.

@asvetlov
Copy link
Member

Maybe add another format letter for specifying floating numbers?
Or something like %{.6f}D?

@fafhrd91
Copy link
Member Author

another letter is fine

@asvetlov asvetlov mentioned this issue Dec 12, 2015
@asvetlov asvetlov added this to the 0.20 milestone Dec 13, 2015
@asvetlov
Copy link
Member

Fixed by #677

@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

3 participants