Tomcat Logs

详细博客地址:http://hilliate.blog.hexun.com/13105428_d.html

关于tomcat访问日志配置方法很简单:在server.xml里的<host>标签下加上
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>

学习tomcat的地址:http://www.infoq.com/cn/articles/zh-tomcat-http-request-1

Tomcat特性介绍:http://java.chinaitlab.com/Tomcat/909396_2.html

其中:

common的值:%h %l %u %t %r %s %b
combined的值:%h %l %u %t %r %s %b %{Referer}i %{User-Agent}i

猜你喜欢

转载自javatozhang.iteye.com/blog/1972953
今日推荐