Using Tomcat, how can I log each and every call to the servlet engine (something like apache-access.log) ?
Location: http://www.jguru.com/faq/view.jsp?EID=128735 Created: Aug 16, 2000 Modified: 2001-07-19 16:09:35.37 Author: Alex Chaffee (http://www.jguru.com/guru/viewbio.jsp?EID=3) Question originally posed by Ofer Shaked (http://www.jguru.com/guru/viewbio.jsp?EID=62619 As of version 3.2, the standalone version of Tomcat does not provide an access log. It depends on the containing web server (e.g. Apache) for that function. If you feel like it, it would be straightforward to write an Interceptor that does this. Subscribe to tomcat-dev@jakarta.apache.org, check out the latest CVS tree, and have fun! That’s the beauty of open source. (Make sure you support the W3C standard log format, and see the Catalina source for inspiration; there’s code in there for formatting access log entries.