RE: Can we get the number of hits to a servlet using log4j

2002-07-31 Thread Shapira, Yoav
Hi, In the service() method: logger.info(MyServlet: I'm hit! Help!); Or just do it the normal way, using the server's access file. You don't want to go down the path of using log4j to record access. Your web server should have ample provisions for this task. Yoav Shapira Millennium

Re: Can we get the number of hits to a servlet using log4j

2002-07-31 Thread Heinrich Götzger
On Wed, 31 Jul 2002, Vullanki, Srividya wrote: Hi, Is there any way we can find the number of hits to the servlet using log4j In 'jakarta-log4j-1.2.5/examples' are two files: MyPatternLayout.java MyPatternParser.java They show an example on how to add a internal counter which is triggered