Hello, All.

I want to use log4j from my own JavaEE applications. These applications consist 
of some ejb-jars and wars. I need to use separate config file for each 
application.
I tried to write @Singleton EJB that reconfigures log4j with specific file:
<code>
        LoggerContext context = (org.apache.logging.log4j.core.LoggerContext) 
LogManager.getContext(false);
        context.setConfigLocation(myConfigFILE.toURI());
</code>

But this didn't work in my case.
How I can specify the log4j config file name in ear?

-- 
Denis Kostousov
email: denisATkst-dDOTnet
jabber: sandelloATjabber.ru
fingerprint: 8333 395D 395A B7D7 2CDF BBBF 14E2 EE1E E797 04EB
linkedin: http://www.linkedin.com/profile/view?id=101014719



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to