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.

Thanks!

1 comment

I ended up filing a ticket and got an answer:

http://stackoverflow.com/a/18874353/536910

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

Thanks!

0

Please sign in to leave a comment.