logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gokulvsmail <gokulvsm...@gmail.com>
Subject Re: smtp appender - no email send
Date Wed, 31 Jul 2013 10:26:53 GMT
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, dev2013@stefanclos.de 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
> log4j.appender.email.From=stefan.clos@helaba-invest.de
> log4j.appender.email.To=stefan.clos@helaba-invest.de
> 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: 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