Thursday, July 7, 2011

Enabling Tomcat Access Logs

By default they seem to be disabled...

Just uncomment the following in server.xml and restart tomcat...

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



If this isn't present in server.xml just insert it before host section closes i.e., </host>

No comments:

Post a Comment