logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xin Zhao <david.z...@gmail.com>
Subject How to config LevelMatchFilter
Date Tue, 01 Nov 2005 14:47:31 GMT
hi all,

I am trying to config the SMTPAppender with LevelMatchFilter by using the
plain config file as followed. But it does not work. Some one said the
LevelMatchFilter only works in XML config file. Is it true?


log4j.appender.emailWarnLog org.apache.log4j.net.SMTPAppender
log4j.appender.emailWarnLog.SMTPHost SMTPMAIL.xxx.COM<http://SMTPMAIL.xxx.COM>
log4j.appender.emailWarnLog.To <http://log4j.appender.emailWarnLog.To>
log4j.appender.emailWarnLog.From Murex_TMS_Feed
log4j.appender.emailWarnLog.Subject Ignore one event
log4j.appender.emailWarnLog.filter org.apache.log4j.varia.LevelMatchFilter
log4j.appender.emailWarnLog.filter.LevelToMatch ERROR
log4j.appender.emailWarnLog.filter.AcceptOnMatch false
log4j.appender.emailWarnLog.layout org.apache.log4j.PatternLayout
log4j.appender.emailWarnLog.layout.ConversionPattern ${CONVERSION_PATTERN}
log4j.appender.emailWarnLog.Threshold ERROR

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message