How do I configure Apache 2.0's log format so that it timestamps each request log with millisecond (or microsecond) accuracy? The docs say that timestamps are specified in strftime format and strftime doesn't seem to handle anyting smaller than seconds.
+1
A:
I don't think it's possible (without rewriting APR, atleast). Apache uses apr_strftime. On Unix, this calls the C library's strftime, but doesn't even fill milliseconds into struct tm (not surprisingly, because this structure doesn't usually support milliseconds in the first place). The Windows versions isn't much different.
Martin v. Löwis
2008-12-02 21:26:31
That's what I suspected, thanks for the details.
Ben Williams
2008-12-03 12:26:36
%D The time taken to serve the request, in microseconds.
HardQuestions
2010-01-21 09:10:20
That measures the time taken to process each request, and not the timestamp for each request.
Seun Osewa
2010-01-25 15:50:05