java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<E>
ch.qos.logback.core.read.CyclicBufferAppender<E>
- All Implemented Interfaces:
Appender<E>,ContextAware,FilterAttachable<E>,LifeCycle
CyclicBufferAppender stores events in a cyclic buffer of user-specified size.
As the name suggests, if the size of the buffer is N, only the latest N
events are available.
- Author:
- Ceki Gulcu
-
Field Summary
Fields inherited from class ch.qos.logback.core.AppenderBase
name, startedFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidget(int i) intintSet the size of the cyclic buffer.voidreset()voidsetMaxSize(int maxSize) voidstart()voidstop()Methods inherited from class ch.qos.logback.core.AppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toStringMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Constructor Details
-
CyclicBufferAppender
public CyclicBufferAppender()
-
-
Method Details
-
start
-
stop
-
append
- Specified by:
appendin classAppenderBase<E>
-
getLength
-
get
-
reset
-
getMaxSize
Set the size of the cyclic buffer. -
setMaxSize
-