[logback-dev] svn commit: r964 - logback/trunk/logback-core/src/main/java/ch/qos/logback/core/net
noreply.seb at qos.ch
noreply.seb at qos.ch
Mon Nov 20 16:34:03 CET 2006
Author: seb
Date: Mon Nov 20 16:34:03 2006
New Revision: 964
Modified:
logback/trunk/logback-core/src/main/java/ch/qos/logback/core/net/SMTPAppenderBase.java
Log:
now sending the presentation header as well
Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/net/SMTPAppenderBase.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/net/SMTPAppenderBase.java (original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/net/SMTPAppenderBase.java Mon Nov 20 16:34:03 2006
@@ -188,11 +188,19 @@
if (header != null) {
sbuf.append(header);
}
+ String presentationHeader = layout.getPresentationHeader();
+ if (presentationHeader != null) {
+ sbuf.append(presentationHeader);
+ }
fillBuffer(sbuf);
String footer = layout.getFileFooter();
if (footer != null) {
sbuf.append(footer);
}
+ String presentationFooter = layout.getPresentationFooter();
+ if (presentationFooter != null) {
+ sbuf.append(presentationFooter);
+ }
if (subjectLayout != null) {
msg.setSubject(subjectLayout.doLayout(lastEventObject));
More information about the logback-dev
mailing list