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 Roger Kjensrud <ro...@cj.com> on 2001/01/23 20:15:32 UTC
Newbie question
Hello,
I've just started to look at log4j, and have a couple of questions:
1. Is is possible to have different appenders that gets invoked for
different priorities only?
For example, I set the priority for the category to be INFO. Then, if for
INFO logging I would like to log to a specific appender only, and for ERROR
logging I would like to log to another appender only.
2. How would I enable the logging to a JMS topic? I assume I have to
implement the Appender interface?
Thank you for contributing with such a cool tool!!
Roger Kjensrud
Re: Newbie question
Posted by Ceki Gülcü <cg...@urbanet.ch>.
At 11:15 23.01.2001 -0800, you wrote:
>Hello,
>
>I've just started to look at log4j, and have a couple of questions:
>
>1. Is is possible to have different appenders that gets invoked for
>different priorities only?
>For example, I set the priority for the category to be INFO. Then, if for
>INFO logging I would like to log to a specific appender only, and for ERROR
>logging I would like to log to another appender only.
Roger,
See the Threshold option in AppenderSkeleton. BTW, this is already FAQ item.
>2. How would I enable the logging to a JMS topic? I assume I have to
>implement the Appender interface?
Log4j comes with a JMSAppender already.
>Thank you for contributing with such a cool tool!!
Thank you for thanking, :-) Ceki
----
Ceki Gülcü (cgu@urbanet.ch)