Some basic logging information can be found on the geronimo coding standards page found here: http://geronimo.apache.org/coding-standards.html
The highlights of this page as pertains to your question are:
Sorry to resurrect this thread. But there is no documentation on how to do logging in Geronimo.I looked through the classes and see GeronimoLog and others, but no usage on any of these from a JSP.Do we have to include log4j jar files as part of our WEB-INF/lib folders ?-- Simon
--On 6/28/07, firstname.lastname@example.org < email@example.com> wrote:On 6/28/07, bdushok < firstname.lastname@example.org> wrote:
> Can anyone point me toward any documentation on how to set up access logging?
> I have apps running on Geronimo 1.1.1 and would like to obtain access info
> for individual jsp pages and servlets.
Logging hits is problematic on the Web. Are you checking server load,
or do you want the actual number of times each page is opened?
For server load, check the logs of the http engine. For Geronimo,
those logs would be generated by Tomcat or Jetty.
For secure pages, the server logs may also be good enough since the
browser will usually contact the server.
For the real number of times a page is opened or a link is clicked,
some other technology that can dynamically generate URLs. Google
Analytics is a free version. I recently wrote a simple WAR to handle
this for a confidential application with two parts:
must be unique. I add the datetime and a random number to make
certain each URL is unique. This required 5 lines of JS for a
function plus one call for each item being logged (the page or a
2. A Servlet that accepts the URL and logs information. I used log4j
so the Java code fit on one screen. I made almost everything
configurable from web.xml.