tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Wingfield <jon.wingfi...@mkodo.com>
Subject Re: <html:errors/>
Date Tue, 28 Jan 2003 21:15:33 GMT
Are you using log4j? If you are then chack out the 
org.apache.log4j.net.SMPTAppender. It sends a mail each time a message 
of the required severity is logged.

http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/net/SMTPAppender.html

example of log4j.properies portion for this appender:

log4j.rootCategory=info, mail

log4j.appender.mail=org.apache.log4j.net.SMTPAppender
log4j.appender.mail.To=sysadmin@your.domain.com
log4j.appender.mail.From=your.webapp@your.domain.com
log4j.appender.mail.SMTPHost=@MAIL_HOST@
log4j.appender.mail.Threshold=ERROR
log4j.appender.mail.BufferSize=1
log4j.appender.mail.Subject=Application Error


Pablo L. Crivaro wrote:
> hi
> i want access the error list written by the <html:errors/> tag usign java,
> not the tag (i wanna submit exceptions by mail automatically). how is that?
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
> 





--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message