星期六, 4月 26, 2008

Tomcat的access log

在server.xml裡面加入這兩行即可

可參考http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="combined" resolveHosts="false"/>

<Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="localhost_log." suffix=".txt" timestamp="true"/>

沒有留言: