|
Java™ by example!
|
|
|
How do I change the directory where the Tomcat access log files are written?

Chat with random people around the world, auto-translating languages!
Log files are written by the Tomcat valve AccessLogValve. A valve, Tomcat only, is a Java class that preprocesses access requests. You can associate valves in server.xml to the containers engine, host and context. Search TOMCAT_HOME/conf/server.xml for "AccessLogValve". Specify the attribute directory as shown in this example:
This will cause all the access logs of the hosting container to be written to c:\tomcatlogs.
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|