Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Using Tomcat, how can I log each and every call to the servlet engine (something like apache-access.log) ?

engine log servlet Tomcat
0
Posted

Using Tomcat, how can I log each and every call to the servlet engine (something like apache-access.log) ?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123