3

Apache 2.4 introduced sub-second granularity for log timestamps, so you can do things like

LogFormat "%{%d/%b/%Y %T}t.%{msec_frac}t %{%z}t [...]

As far as I can tell, this feature is not available natively in Apache 2.2. We're not ready to upgrade to 2.4 yet, but I'd still like to have granular timestamps.

Is there a way of getting this functionality in Apache 2.2?

-1

The documentation says this feature should exists in apache 2.2

%{format}t  | The time, in the form given by format, which should be in strftime(3) format. (potentially localized)

take a look at http://httpd.apache.org/docs/2.2/mod/mod_log_config.html.

| improve this answer | |
  • But, as I read it, nothing in strftime suggests it offers sub-second timing. – MadHatter Mar 19 '14 at 8:09
  • both documentations talk about strftime(3) formatation, so they should support the same tokens. maybe you should simply try it in apache 2.2. – Radon8472 Mar 19 '14 at 8:15
  • The Apache 2.4 docs say 'In addition to the formats supported by strftime(3), the following format tokens are supported:', and goes on to list msec_frac. – Flup Mar 19 '14 at 8:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.