logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Srinadh Karumuri <skaru...@bbn.com>
Subject Unable to enable the emailing feature
Date Thu, 12 May 2005 18:30:38 GMT
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=skarumur@abc.xyz
log4j.appender.EMAIL.To=skarumur@abc.xyz
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 
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message