JoranConfigurator jcl = new JoranConfigurator();
jcl.doConfigure(appenderConfigFile, LogManager.getLoggerRepository());

(as lifted from DBPerfTest.java)

-----Original Message-----
From: OOMS DIRK [mailto:[EMAIL PROTECTED]
Sent: Friday, February 04, 2005 1:38 AM
To: 'Log4J Users List'
Subject: Basic question JoranConfigurator and LoggerRepository


Hello,

To programmatically get a config file in 1.2.9, i could do:

DOMConfigurator.configure("log4j.xml");

I have been looking into how to do the same simple thing with
JoranConfigurator in 1.3, but the doConfigure method of the
JoranConfigurator requires a LoggerRepository parameter, which is an
Interface. How do I obtain a LoggerRepository object? I am assuming it is
something basic, but I can't figure out how I can replace the above line of
code by the JoranConfigurator.

Cheers,
dirk

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

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

Reply via email to