Piyush

Would'nt multiple "Loggers" solve the problem for you?
You can dynamically "create" a new Logger add an appropriate
Appender(File,etc) or if already configured in the properties file that
would be picked up. This way you have log files for each application. It
would'nt be possible or even feasible to over-ride Log4J resource loading
functionality. 

if you have multiple config files, I'd say concatenate them. If this does'nt
make sense, then you may have to explain your case in more detail to warrant
multiple config files.

rajiv

-----Original Message-----
From: Piyush Agrawal [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 20, 2002 6:29 PM
To: [EMAIL PROTECTED]
Subject: URGENT help needed! Mutliple applications using log4j on a
Single server


Hi,

We are building a auditing component (that wraps around log4j) for logging
purpose. Now this is a
reusable component that will be used by each application through out the
enterprise. And all the
applications will be deployed on the WAS 4.0.2 on the AIX box.

My problem: Log4j is based on the Singleton pattern, but the need here is
each application will
have a its own log4j.config file(i.e. log4j.config file will be different
for each application).
And multiple application will be installed/deployed on the same WAS default
server (Single
server). My problem is how will log4j singleton pattern will take care of
the multiple
log4j.config files for different applications? Is there some JVM
partitioning done?

Any help on this subject would be highly appreciable. Reply ASAP.

Thanks,
Piyush

=====
Piyush Agrawal ([EMAIL PROTECTED])
Tel : 91-80-852 0261 extn. 2209
Fax :91-80-852 0362

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to