logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Separate configs for different webapps
Date Fri, 08 Aug 2003 16:57:04 GMT

Howdy,
Yes.  Instead of them sharing log4j.jar, put a copy of the jar in each
app's WEB-INF/lib folder.  Then keep the separate config files as you've
done, in each app's WEB-INF/classes folder.  Make sure there's no
log4j.jar in tomcat's common/lib directory.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: GREVER,PAT (HP-Boise,ex1) [mailto:pat.grever@hp.com]
>Sent: Friday, August 08, 2003 12:37 PM
>To: log4j-user@jakarta.apache.org
>Subject: Separate configs for different webapps
>
>Hi,
>
>I am probably asking a stupid question here because I am new to log4j
and
>tomcat.
>
>I have two webapps running under tomcat (single JVM) that are sharing
>common
>libraries.  I am trying to find a way to set up the logging properties
such
>that the two webapps have different settings (i.e., different
appenders,
>layouts, levels, etc.).  I've tried putting a log4j.properties file in
the
>classes directory for each of my webapps, but it seems it only
>automatically
>picks up the one associated with whichever webapp is started first by
>tomcat
>(the other one is never loaded).  If I put an explicit call in both
webapps
>to the PropertyConfigurator, it seems that whichever one loads last
>overwrites the previous settings.  Can I get different settings for
each of
>my webapps somehow?
>
>Pat Grever
>Software Development Engineer
>iIPS Connectivity - Management & Applications Lab
>Phone:  208.396.2522
>Fax:      208.396.4796
>pat_grever@hp.com
>




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: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message