You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Mark Derricutt <ma...@talios.com> on 2001/12/15 13:00:23 UTC
Configured...
Hi, is there a way to see know if log4j has already been configured?
I'm my JUnit tests, I'm calling BasicConfigurator.configure() in my setup()
routine, but I notice, after each test, my log entries duplicate, so by the
last test I'm finding like 10+ copies of each log message. I couldn't see
any "isConfigured" type methods (maybe I was blind?)
Mark
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Configured...
Posted by Mark Derricutt <ma...@talios.com>.
Excellent. Works a treat.
--On Sunday, 16 December 2001 10:17 a.m. -0800 doug b <um...@yahoo.com>
wrote:
> Enumeration iterator =
--
Mark Derricutt E-Mail: markd@timedisciple.com
Senior Delphi Developer ICQ: 19348533
Time Disciple Ltd http://www.timedisciple.com
Limitations only serve to give direction to your goals
Vi de udødelige inviterer dere til å slå dere sammen med oss
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Configured...
Posted by doug b <um...@yahoo.com>.
we use:
// log4j simple/default setup iff
// no other Appenders already configured
Enumeration iterator =
Category.getRoot().getAllAppenders();
if (!iterator.hasMoreElements())
{
BasicConfigurator.configure();
}
--- Mark Derricutt <ma...@talios.com> wrote:
> Hi, is there a way to see know if log4j has already
> been configured?
>
> I'm my JUnit tests, I'm calling
> BasicConfigurator.configure() in my setup()
> routine, but I notice, after each test, my log
> entries duplicate, so by the
> last test I'm finding like 10+ copies of each log
> message. I couldn't see
> any "isConfigured" type methods (maybe I was blind?)
>
>
> Mark
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>