avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <j...@socialchange.net.au>
Subject Re: Logkit: Logger.is[Priority]Enabled - suggested method.
Date Tue, 11 Dec 2001 11:13:19 GMT
On Tue, Dec 11, 2001 at 10:02:32PM +1100, Jeff Turner wrote:
> >     /**
> >      * Determine if messages of priority  will be logged.
> >      *
> >      * @return true if messages will be logged
> >      */
> >     public final boolean isEnabled(Priority p)
> >     {
> >         return getPriority().isLowerOrEqual( p );
> >     }
> 
> Isn't that logic backwards? If getPriority has a LOWER priority (eg
> DEBUG) that p's (eg WARN), then logging is disabled, not enabled.

Nevermind me.. misunderstood.. it's correct. 

--Jeff


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


Mime
View raw message