logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carson Reinke" <crei...@MarketingAssociates.com>
Subject RE: Different appenders for different loggers?
Date Wed, 04 May 2005 17:48:51 GMT
I believe you want to do this:

log4j.additivity.x.y.z=false

-----Original Message-----
From: Steve Kuo [mailto:steve_kuo@yahoo.com] 
Sent: Wednesday, May 04, 2005 1:35 PM
To: log4j-user@logging.apache.org
Subject: Different appenders for different loggers?


Here's what I'm trying to do. Use one appender for a
particular logger (say x.y.z), and another default
appender for everything else.

The default appender is easy:
log4j.rootLogger=ERROR, logFile
log4j.appender.logFile=org.apache.log4j.RollingFileAppender
log4j.appender.logFile.MaxFileSize=1MB
and so on..

What I can't figure out is how to setup an appender
for a particular logger instance?

Thanks, Steve

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


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