E-Mailing errors when an error-page is displayed
I'm implementing an interesting feature this morning. When a user views the error-page of the application, an e-mail is sent to an administrator with a StackTrace. By error-page, I mean the "errorPage" attribute in a JSP's page declaration.
<%@ page language="java" errorPage="/errorPage.jsp" contentType="text/html; charset=utf-8" %>
I'm using the mailer taglib to do this, but can't help thinking that Log4j already provides similar functionality. Doesn't it have an SMTPAppender or something like that. I briefly scanned their site, but didn't see anything. If you know how to configure this functionality - hook me up!
Posted by Rick Salsa on January 11, 2003 at 05:41 PM MST #
Posted by Matt Raible on January 11, 2003 at 05:51 PM MST #
Posted by Philipp Meier on January 11, 2003 at 07:20 PM MST #
Posted by Joseph Ottinger on January 12, 2003 at 09:36 AM MST #