¾ÆÆÄÄ¡ ·Î±× rotatelogs
# san2@2005.06.10
# %v: ServerName name
# %V: ServerAlias name
# %f: file name
# %a: remote ip address
# %T: server run time
# %s: status code
# %b: sent bytes
# %t: time CLF
# %{...}t: strftime(3) format
# %X: conection status, X(abort), +(keepalive), -(closed), at apache2.x
#
LogFormat "%t %v %a %f %s %b %T %{Referer}i @ %{User-Agent}i" custom
#LogFormat "%t %v %a %f %400,401,403,404,408s %b %T %{Referer}i @ %{User-Agent}i" uerror
SetEnvIf Request_URI "(html|htm|php|/)$" uclick
CustomLog "|/usr/local/apache/bin/rotatelogs /var/log/httpd-access-%Y%m%d.log 86400 540" custom env=uclick
#CustomLog "|/usr/local/apache/bin/rotatelogs /var/log/httpd-error-%Y%m%d.log 86400 540" uerror |