tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Logging and Tomcat 5.0.16
Date Mon, 05 Jan 2004 14:11:12 GMT


>1) Is there a reason why the script that comes bundled with
>Tomcat 5.0.16 adds commons-logging-api.jar to the CLASSPATH?  As far as
>I can tell, it's the only script that uses it.

Yes, there's a good reason: tomcat internals use commons-logging to do
their logging.

>2) Is there a recommended way to control what gets spewed into
>catalina.out?  The fact that all the messages I'm getting have an INFO
>tag would indicate that this should be possible.

Yes, add a commons-logging configuration file to common/classes, e.g. as
suggested in this link off the tomcat FAQ:

>3) In any case, why doesn't Tomcat just come with commons-logging.jar
>and log4j.jar bundled in /server/libs?

Tomcat does not want to tie you into a specific logging implementation,
e.g. log4j.  Tomcat wants to make its logging available to webapps by
default, so server/lib is not a possible location.

>4) Is there a FAQ or HOWTO on recommended approaches to handling
>in Tomcat somewhere?

It won't hurt to search the archives of this list, there are many
answers there.  The link above also has some information.

Yoav Shapira

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message