logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hakan Koseoglu <hakan.koseo...@gmail.com>
Subject multiple files, same logger and different tresholds
Date Thu, 11 Nov 2004 11:14:24 GMT
Hi all,

I'm trying to log to two or more different files at the same time. i
have set my rootLogger and I set a couple of appenders on different

What I want to have is, I want to have class classA to log with a
treshold of DEBUG to file a.log, I want the same class log to the fole
B, with a treshold of WARN.

I set up a custom level like
log4j.logger.classA=DEBUG, appender1
log4j.logger.classA=INFO, appender2

I'm not sure if this will work or not. WIll the output appear on both
files, limited with the treshold or will it only appear on on of the
definitions, since I am actually setting one property with two vales.

Is it possible to have such debugging to two files?



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

View raw message