server.xml中配置http请求方法access日志

 

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="/home/webadmin/logs"
               prefix="ip.access.log." suffix="" buffered="false"
               pattern="%{X-Forwarded-For}i %{CLIENT_IP}i %l %u %t %T %r %s %b '%{Referer}i' %{User-Agent}i" />