Phanix

Just writing

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

官方文件: https://httpd.apache.org/docs/current/mod/mod_log_config.html

Original link: Phanix's Blog

Like my work??
Don't forget to support or like, so I know you are with me..

CC BY-NC-ND 2.0

Want to read more ?

Login with one click and join the most diverse creator community.