[logback-user] error log : one email per request

Weipeng He heweipeng at gmail.com
Thu Mar 24 13:24:05 UTC 2016


enclosed is the logback.xml file. I add those mdc values in a filter.
Thanks.

Best,
Weipeng

On 03/24/2016 08:57 PM, Ceki Gulcu wrote:
>
> Comments inline.
>
> On 3/24/2016 13:31, Weipeng He wrote:
>> Hi all,
>>
>> I am using SMTPAppender for error report in a web application. Using
>> default setting, the logger sends one email per log message. However, I
>> was trying make it like this :
>>
>> * All the messages logged during one request handling are grouped into
>> one email, and the email is sent only when error occurs (i.e. at least
>> one of log events is at level ERROR)
>
> This is the default behavior. Can you post your logback.xml file?
>
>> Is there any easy way to implement this?
>>
>> Thank you.
>>
>> Best,
>> Weipeng
>> _______________________________________________
>> logback-user mailing list
>> logback-user at qos.ch
>> http://mailman.qos.ch/mailman/listinfo/logback-user
> _______________________________________________
> logback-user mailing list
> logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20160324/481a4d04/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logback.xml
Type: text/xml
Size: 1223 bytes
Desc: not available
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20160324/481a4d04/attachment.xml>


More information about the logback-user mailing list