Adding process time in Apache log

紀錄一下,要不然每次都還要找 +__+

用 %{ms}T

$ more /etc/apache2/apache.conf
....
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O %{ms}T \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O %{ms}T \"%{Referer}i\" \"%{User-Agent}i\"" combined

官方文件

Leave a Reply

Your email address will not be published. Required fields are marked *