Apache 2.2中的精细时间戳

Apache 2.4 为日志时间戳引入了次秒粒度 ,所以你可以做类似的事情

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

据我所知,这个特性在Apache 2.2中本身是不可用的。 我们还没有准备好升级到2.4,但我仍然想要精确的时间戳。

有没有办法在Apache 2.2中获得这个function?

文档说这个特性应该存在于apache 2.2中

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

看看http://httpd.apache.org/docs/2.2/mod/mod_log_config.html