I am using this property file to setup log4j in Spring:
log4j.appender.EMAIL=org.apache.log4j.net.SMTPAppender
log4j.appender.EMAIL.filter=org.apache.log4j.varia.LevelRangeFilter
log4j.appender.EMAIL.filter.levelMin=FATAL
but getting:
log4j:WARN Failed to set property [filter] to value "org.apache.log4j.varia.LevelRangeFilter".
Any ideas?
From the docs for PropertyConfigurator:
I suggest you use an XML file to set it up instead.
You don't need a filter for this.
log4j.appender.EMAIL.Threshold=FATAL