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 Rafael Alvarez <so...@yahoo.com> on 2002/05/07 14:53:39 UTC

Re: Different files destinations for different levels

Hi James,

JH> This is working just fine, but now I would like 'error' level output to go
JH> to a different file from all other log output.  How should I go about this?

Check out LevelMatchFilter and  LevelRangeFilter. They are in the
org.apache.log4j.varia package (I'm using log4j 1.2).
Perhaps they are what you need. The only catch is that the property
file doesn't support filter assigment, so you'll need to use the xml
config.

Hope this help.

-- 
Best regards,
 Rafael                            mailto:soronthar@yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>