Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification.
The "AccessLogValve" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/AccessLogValve?action=diff&rev1=5&rev2=6 Comment: Expand the text, clarify server.xml question - First read this http://tomcat.apache.org/tomcat-7.0-doc/config/valve.html and http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/valves/AccessLogValve.html + First read the [[http://tomcat.apache.org/tomcat-7.0-doc/config/valve.html|Valve chapter]] in ''Configuration Reference Guide''. There is also [[http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/valves/AccessLogValve.html|javadoc]] for the class. - Add something like this to your context file (also can be added to Host) (or is it conf/server.xml file?) + The following is an example of AccessLogValve configuration. If you want it to log requests processed by your web application, add it to the [[http://tomcat.apache.org/tomcat-7.0-doc/config/context.html|context file]] of your application (`META-INF/context.xml`). If you want it to log all requests, add it to the '''Host''' element in {{{conf/server.xml}}} file. + + Starting with Tomcat 7 an AccessLogValve is already configured in the default conf/server.xml file that is shipped with Tomcat. {{{ <Valve --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org