tomcat - YUHAO-ZX/StudyCollection GitHub Wiki
1.access_log tomcat访问日志:
<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%{X-FORWARDED-FOR}i %l %u %t %r %s %b %D %q %{User-Agent}i %T" resolveHosts="false"/>
</Host>
</Engine>
pattern :http://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Access_Logging