Put the commons-logging.jar and log4j.jar in your server/lib directory and
your log4j.properties file in the server/classes directory. This is a
seperate class loader from the one used for your web applications so you can
define the Tomcat server logging seperately from your web application
logging.

Make sure you don't have log4j jar and properties file in the common
directory or this will override any other settings as the other class
loaders "inherit" from this class loader.

See the Tomcat documentation for an explanation of the organisation of class
loaders for Tomcat:

http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

Jon.

On 27/07/06, Raju Balugu <[EMAIL PROTECTED]> wrote:

Hi ,

Tomcat 5.5.15 Solaris 2.9 box

I am trying to configure the logging throuth log4j but not able to
success..getting lot of errors.

Can anybody give the steps to configure the tomcat logging.(specific to
Tomcat purpose not the application)

Regards
Raju


Reply via email to