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 Alain RAVET <ar...@cirb.irisnet.be> on 2001/01/09 10:57:31 UTC

log different levels to different appenders

Hi,

This must be trivial, but I can't make it work :

Is there a simple way to send different levels of messages coming from a
same category to different appenders?

Examples :
	all messages (DEBUG..ERROR)  => a file
      WARNING & ERROR => the console



Alain RAVET


Re: log different levels to different appenders

Posted by Ceki Gulcu <cg...@urbanet.ch>.
At 10:57 09.01.2001 +0100, you wrote:
>Hi,
>
>This must be trivial, but I can't make it work :
>
>Is there a simple way to send different levels of messages coming from a
>same category to different appenders?
>
>Examples :
>         all messages (DEBUG..ERROR)  => a file
>       WARNING & ERROR => the console

Alian,

Yes, there is a way. Have a look a the Threshold option of 
AppenderSkeleton.  Ceki