[logback-dev] [JIRA] (LOGBACK-1436) There is no way to know how many events are discarded by AsyncAppender

QOS.CH (JIRA) noreply-jira at qos.ch
Wed Nov 14 13:28:00 CET 2018


Roberto Tyley created LOGBACK-1436:
--------------------------------------

             Summary: There is no way to know how many events are discarded by AsyncAppender
                 Key: LOGBACK-1436
                 URL: https://jira.qos.ch/browse/LOGBACK-1436
             Project: logback
          Issue Type: Improvement
          Components: logback-classic
    Affects Versions: 1.2.3
            Reporter: Roberto Tyley
            Assignee: Logback dev list


ch.qos.logback.classic.AsyncAppender's append() method will discard events if both 

isQueueBelowDiscardingThreshold() and isDiscardable(eventObject) are true, which is reasonable and documented behaviour, but there is no way for the user to track the level at which this is occurring.

It's not easy to address this problem by extending AsyncAppender, as isQueueBelowDiscardingThreshold() is private and depends on private values. Making 

isQueueBelowDiscardingThreshold() protected rather than private would help here, or alternatively directly building-in some kind of counter of discarded events would be another way.

 



--
This message was sent by Atlassian JIRA
(v7.3.1#73012)


More information about the logback-dev mailing list