You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "James A. N. Stauffer" <st...@gmail.com> on 2008/07/01 18:27:52 UTC

Re: isErrorEnabled()

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
<ko...@cs.tu-berlin.de> 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: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org