THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
First read this http://tomcat.apache.org/tomcat-57.50-doc/config/valve.html and http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/valves/AccessLogValve.html
Add something like this to your context file (also can be added to Host)
No Format |
---|
<Valve className="org.apache.catalina.valves.FastCommonAccessLogValveAccessLogValve" directory="${catalina.homebase}/logs/" prefix="access_log" fileDateFormat="yyyy-MM-dd.HH" suffix=".log" pattern="%t %H cookie:%{SESSIONID}c request:%{SESSIONID}r %m %U %s %q %r" /> |
...