If I have the architecture of the log4j system correct in mind ... It's the Appender which gets attached to the Logger feeding the Appender. If the your Logger is at level=ERROR then the APPENDER will only receive ERROR and above messages to append. Therefore I would check first the logger
i.e. log4j.logger.org.apache.axiom=WARN, email, CONSOLE, R, CHAINSAW_CLIENT means the Logger axiom will feed Appender email, CONSOLE, R and CHAINSAW_CLIENT Please check your Logger definition and lower it to at least level=WARN Josef -----Ursprüngliche Nachricht----- Von: Curtis Garman [mailto:[email protected]] Gesendet: Montag, 16. August 2010 19:26 An: [email protected] Betreff: configuring email appending for WARN and above Can someone tell if it is possible to configure the smtp email appender to send email for WARN level message and above? I seem to only be able to get ERROR level stuff to come back in email form. log4j.appender.email=org.apache.log4j.net.SMTPAppender log4j.appender.email.SMTPHost=smtp.server log4j.appender.email.SMTPDebug=false log4j.appender.email.bufferSize=1 [email protected] [email protected] log4j.appender.email.subject=subject log4j.appender.email.threshold=WARN log4j.appender.email.layout=org.apache.log4j.PatternLayout log4j.appender.email.layout.ConversionPattern=[%p] %d{ISO8601}%n%n%c:%L%n%n%m%n -- Curtis --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
