I want to log it programatically. Like write a thread that wakes up every 5 mins and collects the number of times a Servlet has been invoked and if possible time it took to process a request.
As suggested by you, if I comment out the configuration in server.xml will it write to a file? Or do we have an API to retrieve the values?