We use something like this on a Sun box: 
log4j.rootCategory=, A_JMS, A_SMTP

# A_SMTP is set to SMTP Appender 
log4j.appender.A_SMTP=org.apache.log4j.net.SMTPAppender
[EMAIL PROTECTED]
log4j.appender.A_SMTP.From=god
log4j.appender.A_SMTP.Subject=Buggggggs
log4j.appender.A_SMTP.SMTPHost=<name of you smtp host>
log4j.appender.A_SMTP.Threshold=FATAL


# A_SMTP uses PatternLayout.
log4j.appender.A_SMTP.layout=org.apache.log4j.PatternLayout
log4j.appender.A_SMTP.layout.ConversionPattern=%d %-5p [%t] %-17c{2} 
(%13F:%L) %3x - %m%n


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to