Enabling Tomcat access logs

Hi all,

How do I enable logging of access logs in IntelliJ?

I know that to enable it, this snippet needs to be added to server.xml:

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

However, I can't add it to %SYSTEM%/tomcat/project/conf/server.xml because it gets overridden on startup.


1 comment
Comment actions Permalink

I ended up filing a ticket and got an answer:


(I needed to add the snippet to the server.xml file of the Tomcat 6 that my app was using)



Please sign in to leave a comment.