Hello,

I'm just beginning to incorporate log4j into a J2EE
Resource Adapter I'm writing.  My project already has
a configuration property file (lyConfig.properties)
from which I gather various configuration parameters
at startup.  Rather than adding log4j.properties to my
environment I'd like to add the relevent properties to
the file I already 
have. 

A couple of questions then:  First of all, is this a
good idea?  Is it what people typically do?  If so,
what is the best way to force log4j to read this file?
 My first attempt was simply to add the following to
the constructor of all objects which will instantiate
a logger:

      System.setProperty("log4j.configuration",
"lyConfig.properties");


this seems to work but it seems that it might not be
very good form to change one of the system properties
in a component running in an app server.  So, is there
any other way to accomplish this?  Sorry for rambling.

-Jason

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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

Reply via email to