Unable to enable the emailing feature

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Unable to enable the emailing feature

Srinadh Karumuri
I am brand new to Log4J.

I am trying to enable the email feature but neither getting email nor
getting any errors about the email setup. I would appreciate if someone
could help me out.
Here is my .properties file:

log4j.rootLogger=debug, stdout, L1, EMAIL

log4j.appender.L1=org.apache.log4j.RollingFileAppender
log4j.appender.L1.layout=org.apache.log4j.PatternLayout
log4j.appender.L1.File=../logs/ws.log

log4j.appender.EMAIL=org.apache.log4j.net.SMTPAppender
log4j.appender.EMAIL.BufferSize=512
log4j.appender.EMAIL.SMTPHost=mysmtp.abc.xyz
log4j.appender.EMAIL.Threshold=DEBUG
log4j.appender.EMAIL.From=[hidden email]
log4j.appender.EMAIL.To=[hidden email]
log4j.appender.EMAIL.Subject=[SMTPAppender] WS Application message
log4j.appender.EMAIL.layout=org.apache.log4j.PatternLayout
log4j.appender.EMAIL.layout.ConversionPattern=%d %-5p %m%n

Thanks ahead,
-Sri