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 Andre Silva <an...@eldorado.org.br> on 2001/07/28 01:14:59 UTC

Priority on Appenders

Hi all,

I´m newbie with log4j, and I have a question about priorities:

Is it possible to set priorities on appenders instead of categories? I would
like to have some appenders under the same category, but some logs directed
to one appender and some to another appender, but not for both.

Thanks!

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


Re: Priority on Appenders

Posted by Sam Newman <sa...@stamplets.com>.
yes - if the appender you're using implements AppenderSkeleton (most/all
ofthe provided Appenders do). In this case you call the setThreshold()
method. For more details check AppenderSkeleton docs here:
http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/AppenderSkeleton.h
tml

hope this helps....

sam
----- Original Message -----
From: "Andre Silva" <an...@eldorado.org.br>
To: <lo...@jakarta.apache.org>
Sent: Saturday, July 28, 2001 12:14 AM
Subject: Priority on Appenders


> Hi all,
>
> I´m newbie with log4j, and I have a question about priorities:
>
> Is it possible to set priorities on appenders instead of categories? I
would
> like to have some appenders under the same category, but some logs
directed
> to one appender and some to another appender, but not for both.
>
> Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>


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