I have been playing with LogKit (Playing is good).
With the deprecation of the getPriority() method of the Logger class, a
series of is[Priority]Enabled() methods were added.
May I suggest that 1 additional method is needed within the class and it
would look something like this:
/**
* 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 );
}
I think that this would complement the existing is[]Enabled() methods
without breaking IOC and provide a little more flexibility.
Any comments - anyone?
****************************************************************
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]>