Details
-
Improvement
-
Resolution: Fixed
-
Major
-
1.2.3
-
None
Description
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/public rather than private would help here (see https://github.com/qos-ch/logback/pull/325 for a submitted PR by another user to do this) , or alternatively directly building-in some kind of counter of discarded events would be another way.
Attachments
Issue Links
- links to