Had me worried for a minute till I read your 2nd post.




Jeff Turner <[EMAIL PROTECTED]> on 11/12/2001 22:13:19

Please respond to "Avalon Developers List" <avalon-dev@jakarta.apache.org>

To:   Avalon Developers List <avalon-dev@jakarta.apache.org>
cc:

Subject:  Re: Logkit: Logger.is[Priority]Enabled - suggested method.

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:[EMAIL PROTECTED]
>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]
>










****************************************************************
NOTICE - This message is intended only for the use of the 
addressee named above and may contain privileged and 
confidential information.  If you are not the intended recipient
of this message you are hereby notified that you must not 
disseminate, copy or take any action based upon it.  If you 
received this message in error please notify HIC immediately.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of HIC.
****************************************************************

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

Reply via email to