|
@@ -104,7 +104,8 @@ public class LogbackEmailAppender extends AppenderBase<ILoggingEvent> {
|
|
private void send(ILoggingEvent event) {
|
|
private void send(ILoggingEvent event) {
|
|
String type = this.layout.getContentType();
|
|
String type = this.layout.getContentType();
|
|
String content = this.layout.doLayout(event);
|
|
String content = this.layout.doLayout(event);
|
|
- Body body = Body.builder().to(this.email.to).type(type).subject(this.email.subject).content(content).build();
|
|
|
|
|
|
+ Body body = Body.builder().to(this.email.to).cc(this.email.cc).bcc(this.email.bcc)
|
|
|
|
+ .type(type).subject(this.email.subject).content(content).build();
|
|
this.getEmailHandler().send(body);
|
|
this.getEmailHandler().send(body);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -147,6 +148,16 @@ public class LogbackEmailAppender extends AppenderBase<ILoggingEvent> {
|
|
*/
|
|
*/
|
|
private String to;
|
|
private String to;
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 抄送人
|
|
|
|
+ */
|
|
|
|
+ private String cc;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 暗送人
|
|
|
|
+ */
|
|
|
|
+ private String bcc;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 邮件主题
|
|
* 邮件主题
|
|
*/
|
|
*/
|