By default behavior log4j will only send the log messages when a ERROR event is happening.
For testing try by create some error loggs.

gokul

On Wednesday 31 July 2013 03:23 PM, [email protected] wrote:
Hello,

i configured an smtp appender to get log messages by email.
Console and File Appenders work well, but the smtp appender seems not to do anything.

Any ideas ? How can i debug this, i didn“t get any error messages from log4j ?

LOG4J Configuration:

log4j.appender.email=org.apache.log4j.net.SMTPAppender
log4j.appender.email.Threshold=DEBUG
log4j.appender.EMAIL.SMTPDebug=true
log4j.appender.email.SMTPHost=127.0.0.1
[email protected]
[email protected]
log4j.appender.email.Subject=IBOXX_KURSE_CHECK_ERROR
log4j.appender.email.BufferSize=512
log4j.appender.email.layout=org.apache.log4j.PatternLayout
log4j.appender.email.layout.ConversionPattern=%m


cheers
Stefan



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to