logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gulcu <...@urbanet.ch>
Subject Re: log different levels to different appenders
Date Tue, 09 Jan 2001 10:00:48 GMT
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


Mime
View raw message