logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob van der Leek <...@ricardis.tudelft.nl>
Subject Re: Appenders at different log levels for a single logger
Date Thu, 14 Jul 2005 13:48:24 GMT
On Thu (Jul 14) at 09:34, Philip Kaplan wrote:
> Your second rootLogger entry is overriding your first.  Keep the root
> logger set at debug and place both appenders there...and then set the
> threshold values on each of the loggers to DEBUG and ERROR
> respectively.
> 
> log4j.appender.logfile.Threshold=DEBUG
> log4j.appender.errorlog.Threshold=ERROR

Thanks Philip! I suspected I was overriding and not extending the 
logger, these attributes work fine.

Regards, Rob

-- 
Rob van der Leek                |     rob(at)ricardis(dot)tudelft(dot)nl
Ricardishof 71-A                |          http://www.robvanderleek.info
2614 JE Delft, The Netherlands    
+31 (0)6 155 244 60                

---------------------------------------------------------------------
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