折雨的天空
apache2.4记录性能日志的配置
2019-4-23 我好笨
    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



在默认的后面增加了一截内容,进行显示。
发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容