SMTPAppender - dynamic email subject line
1 posts in topic
Flat View  Flat View

Posted By:   nicky_nicolson
Posted On:   Wednesday, November 20, 2002 02:40 AM

I am using the SMTP appender to log errors, and would like to include the category
of the error in the subject line - is there a way to do this? This would be specified in
the log4j.properties file, something like:

log4j.appender.Mail.Subject=error notification: %c

where %c is the category.


Re: SMTPAppender - dynamic email subject line

Posted By:   Anonymous  
Posted On:   Thursday, November 21, 2002 12:35 AM

I donĀ“t think that this can be done with the SMTPAppender because the setSubject() only takes a String as argument. But you can extend the SMTPAppender and set the subject like you want.
About | Sitemap | Contact