Tomcat uses the
Commons Logging
package to implement all logging. This includes the logging defined
by ServletContext.log
.
If you are interested in producing access logs like a web server does
(for example, to run hit count analysis software), you will want to configure
an Access Log Valve component on
your Engine,
Host, or
Context.
The description below uses the variable name $CATALINA_HOME
to refer to the directory into which you have installed Tomcat 5,
and is the base directory against which most relative paths are
resolved. However, if you have configured Tomcat 5 for multiple
instances by setting a CATALINA_BASE directory, you should use
$CATALINA_BASE instead of $CATALINA_HOME for each of these
references.