Kwa Kil On Swa

Thursday, March 15, 2007

Logging all access in tomcat

conf/server.xml has the following section, which can be uncommented to provide full access logging to all files (can be useful for debugging dojo problems etc.)

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

But be careful -- starting tomcat from eclipse can *recomment* the valve. (I switched off all publishing in the eclipse tomcat server configuration "Automatic Publishing" and the "edit" link

0 Comments:

Post a Comment

<< Home