[logback-dev] [JIRA] (LOGBACK-1436) There is no way to know how many events are discarded by AsyncAppender
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
Issue Type: Improvement
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
More information about the logback-dev