LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common #下面这句实现的 LogFormat "%h %l %u %t \"%r\" %>s %b [%a]%{%F %T}t id=%{APIIndex}i time=%T(s) url=%U%q" timer <IfModule logio_module> # You need to enable mod_logio.c to use %I and %O LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio </IfModule> # # The location and format of the access logfile (Common Logfile Format). # If you do not define any access logfiles within a <VirtualHost> # container, they will be logged here. Contrariwise, if you *do* # define per-<VirtualHost> access logfiles, transactions will be # logged therein and *not* in this file. # # CustomLog "logs/access.log" common CustomLog "|bin/rotatelogs.exe logs/access-%Y-%m-%d.log 86400" common CustomLog "|bin/rotatelogs.exe logs/access-%Y-%m-%d.log 86400" timer
在默认的后面增加了一截内容,进行显示。
------------正 文 已 结 束, 感 谢 您 的 阅 读 (折雨的天空)--------------------
转载请注明本文标题和链接:《apache2.4记录性能日志的配置》
发表评论