logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doug b <ummmm...@yahoo.com>
Subject Re: boolean Configurator.isConfigured()
Date Mon, 15 Apr 2002 17:44:22 GMT
that would be nice.  what we did instead was:

Enumeration iterator =
    Category.getRoot().getAllAppenders();
if (!iterator.hasMoreElements())
{
    BasicConfigurator.configure();
}

--- Endre_Stølsvik <Endre@Stolsvik.com> wrote:
> A method for asking whether the log4j system is
> configured would be nice.
> Is it there already?
> 
> It would be great for driver/testing classes, as one
> could have a block
> such as:
> 
> static {
>   if (! Configurator.isConfigred() ) {
>      BasicConfigurator.configure();
>   }
> }
> 
> -- 
> Mvh,
> Endre
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:log4j-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:log4j-dev-help@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:   <mailto:log4j-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-dev-help@jakarta.apache.org>


Mime
View raw message