Adding process time in Apache log

Phanix
·
·
IPFS
·

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

用 %{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

CC BY-NC-ND 2.0 授权

喜欢我的作品吗?别忘了给予支持与赞赏,让我知道在创作的路上有你陪伴,一起延续这份热忱!