| Article: |
Reporting Application Errors by Email | |
| Subject: | Can I display the error message in the mail subject? | |
| Date: | 2009-03-02 04:13:43 | |
| From: | Sorin Postelnicu | |
|
Does any of you guys know if it's possible to configure the log4j SMTPAppender to format the mail subject so that it includes the error message? Can this be done using log4j.properties? |
||
Showing messages 1 through 1 of 1.
-
Can I display the error message in the mail subject?
2009-09-18 02:14:44 Domaniczky Lajos [View]
The default implementation does not allow you to have dynamic info in the subject concerning the exception. Though, it is fairly easy to implement this, see http://lajosd.blogspot.com/2009/09/log4j-smtpappender-exception-info-in.html


