[logback-dev] [JIRA] Commented: (LBCLASSIC-221) SMTPAppender includes irrelevant logging events

Pavel (JIRA) noreply-jira at qos.ch
Thu Dec 8 17:01:13 CET 2011

    [ http://jira.qos.ch/browse/LBCLASSIC-221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12328#action_12328 ] 

Pavel commented on LBCLASSIC-221:

I'm also experiencing similar behavior after upgrade to 1.0.0. It seems that SMTPAppender doesn't clear the buffer when evaluator triggers. The only place I found where the buffer is cleared was: marker.contains(ClassicConstants.FINALIZE_SESSION_MARKER) 

> SMTPAppender includes irrelevant logging events
> -----------------------------------------------
>                 Key: LBCLASSIC-221
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-221
>             Project: logback-classic
>          Issue Type: Bug
>          Components: appender
>    Affects Versions: 0.9.24
>         Environment: Java6, Tomcat6
>            Reporter: Chris Cheshire
>            Assignee: Logback dev list
> The BufferSize parameter to SMTPAppender has been removed with no replacement. When the SMTPAppender is triggered by an error event it also includes the previous 255 logging events, whether they were errors or not (now that the buffer size is fixed).
> By using BufferSize = 1, I was able to send a single error email every time an error occurred with just that error. Now I get completely irrelevant logging events, potentially days old with nothing to do with the error being logged and no simple way to change this.
> I'm not sure what version this was introduced - I just upgraded from 0.9.17 to 0.9.24.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the logback-dev mailing list