It doesn't look like there is an isErrorEnabled method but you could
use logger.isEnabledFor(Level.ERROR)

Why would you ever disable the error level?

James A. N. Stauffer http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/


On Mon, Jun 23, 2008 at 7:25 AM, Konstantin Domoratskyy
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I use recently log4j.
> I have an old program. There is here a logger.isErrorEnabled() test before
> logger.error("..."). I don't know when this has been implemented, but now I
> cannot found isErrorEnabled() in the log4j API for Logger.
> Is this method now in error(String str) encapsulated? If no, how can I
> realize this combination else?
>
>
> Thanks and regards
> Konstantin Domoratskyy
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to