How to log query logs with millisecond precision in Apache 2.0

How do I configure the Apache 2.0 log format to place marks in each query log to the nearest millisecond (or microsecond)? docs say the timestamps are in strftime format, and strftime doesn't seem to process the value for less than a second.

+4
source share
2 answers

I don't think this is possible (without rewriting the APR, at least). Apache uses apr_strftime . On Unix, this calls the strftime of the C library, but it doesn't even fill milliseconds in struct tm (not surprisingly, because this structure usually doesn't support milliseconds in the first place). Windows options are not much different.

+2
source

use the% D option for microsecond precision

-1
source