<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<tt>enclosed is the logback.xml file. I add those mdc values in a
filter.<br>
Thanks.<br>
<br>
Best,<br>
Weipeng<br>
</tt><br>
<div class="moz-cite-prefix">On 03/24/2016 08:57 PM, Ceki Gulcu
wrote:<br>
</div>
<blockquote cite="mid:56F3E42C.3060008@qos.ch" type="cite">
<br>
Comments inline.
<br>
<br>
On 3/24/2016 13:31, Weipeng He wrote:
<br>
<blockquote type="cite">Hi all,
<br>
<br>
I am using SMTPAppender for error report in a web application.
Using
<br>
default setting, the logger sends one email per log message.
However, I
<br>
was trying make it like this :
<br>
<br>
* All the messages logged during one request handling are
grouped into
<br>
one email, and the email is sent only when error occurs (i.e. at
least
<br>
one of log events is at level ERROR)
<br>
</blockquote>
<br>
This is the default behavior. Can you post your logback.xml file?
<br>
<br>
<blockquote type="cite">Is there any easy way to implement this?
<br>
<br>
Thank you.
<br>
<br>
Best,
<br>
Weipeng
<br>
_______________________________________________
<br>
logback-user mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:logback-user@qos.ch">logback-user@qos.ch</a>
<br>
<a class="moz-txt-link-freetext" href="http://mailman.qos.ch/mailman/listinfo/logback-user">http://mailman.qos.ch/mailman/listinfo/logback-user</a>
<br>
</blockquote>
_______________________________________________
<br>
logback-user mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:logback-user@qos.ch">logback-user@qos.ch</a>
<br>
<a class="moz-txt-link-freetext" href="http://mailman.qos.ch/mailman/listinfo/logback-user">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br>
</blockquote>
<br>
</body>
</html>