On Jun 15, 2007, at 7:28 AM, Bret Schuhmacher wrote:

There are methods for isDebugEnabled and isInfoEnabled, but how do you
check for isFatalEnabled or any of the other levels? I've used
isEnabledFor(Priority.<level>), but Priority.FATAL and the rest are
deprecated, so what's the best way to test for the unrepresented
is<Level>Enabled levels?

Thanks,


As other posters have mentioned, error and fatal errors should occur infrequently enough that you don't try to optimize their performance by trying to minimize unnecessary formatting and concatenations/ However, you can check if any arbitrary level is enabled by using Logger.isEnabledFor().

Logger.isEnabledFor(Level.FATAL);


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

Reply via email to