Cold Chicken » tomcat http://smux.net/blog Tue, 30 Aug 2011 19:51:16 +0000 en hourly 1 http://wordpress.org/?v=3.2.1 Tomcat access logs http://smux.net/blog/2007/12/09/tomcat-access-logs/ http://smux.net/blog/2007/12/09/tomcat-access-logs/#comments Sat, 08 Dec 2007 23:16:41 +0000 Sena http://smux.net/blog/2007/12/09/tomcat-access-logs/ First of all, why does Tomcat take so long to shut down? It took almost three minutes just now… Funnily, it takes two and a half seconds to start up.

Anyway, I’ve finally found out how to  enable access logs on Tomcat, thanks to this page. Just add the following snippet in the correct section of the $TOMCAT_HOME/conf/server.xml file:

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

Restart Tomcat. It’s working.

]]>
http://smux.net/blog/2007/12/09/tomcat-access-logs/feed/ 3