Skip to content

Commit 94b67db

Browse files
erikvanoostenErik van Oosten
and
Erik van Oosten
authored
Made AsyncAppenderBase.isQueueBelowDiscardingThreshold public to facilitate reporting loss of log events in a health check. (#325)
Co-authored-by: Erik van Oosten <[email protected]>
1 parent 85bed93 commit 94b67db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logback-core/src/main/java/ch/qos/logback/core/AsyncAppenderBase.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ protected void append(E eventObject) {
166166
put(eventObject);
167167
}
168168

169-
private boolean isQueueBelowDiscardingThreshold() {
169+
public boolean isQueueBelowDiscardingThreshold() {
170170
return (blockingQueue.remainingCapacity() < discardingThreshold);
171171
}
172172

0 commit comments

Comments
 (0)