logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: parent logger to filter child logger by level
Date Mon, 17 Dec 2007 20:57:07 GMT

On Dec 17, 2007, at 1:50 PM, Mak, Howard wrote:

> Thanks for your response.
>
> Here is what I'm trying to achieve:
>
> (1)     File A contains all logs
> (2)     File B contains only the FATAL/ERROR/WARN logs in file A
>
> In other words, (2) provides a bird's eye view of problems that can  
> be easily missed when reading in (1) (which can be quite big).
>
> Is my only option to write a filter-by-Level appender to be used by  
> (1)?
>
> - Howard
>

Set the level on rootLogger to ALL, attach two appenders to the root  
logger, set the threshold on the second appender to WARN.

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


Mime
View raw message