Good Luck. Just replace the To, Host, and From with your valid entries.
log4j.rootCategory=info, A1, SMTPTest
# A1 writes to the file "ldh".
log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A1.File=e:\\ldh\\ldh.log
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d %-5p [%t] - %m%n
# SMTP appender
log4j.appender.SMTPTest=org.apache.log4j.net.SMTPAppender
log4j.appender.SMTPTest.layout=org.apache.log4j.PatternLayout
log4j.appender.SMTPTest.layout.ConversionPattern=%d %-5p [%t] - %m%n
log4j.appender.SMTPTest.To=[email address]
log4j.appender.SMTPTest.SMTPHost=[smtp mail server address]
log4j.appender.SMTPTest.Subject=Branch Loan Printing System Error
log4j.appender.SMTPTest.From=[from address]
log4j.appender.SMTPTest.BufferSize=1
"Frey, Mary Jo - COMM" <[EMAIL PROTECTED]>
04/18/2002 01:10 PM
Please respond to "Log4J Users List"
To: Log4J Users List <[EMAIL PROTECTED]>
cc:
Subject: log4j.properties file
Is anyone willing to share their log4j.properties file which uses
SMTPAppender to send an email?
I would like to send the log messages as an email.
Thanks!
Mary Jo Frey
Information Systems Specialist
Bureau of Information Technology Services
State of Wisconsin Department of Commerce
(608) 267-2111
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>