Class AsyncAppender
java.lang.Object
- All Implemented Interfaces:
Appender<ILoggingEvent>, AppenderAttachable<ILoggingEvent>, ContextAware, FilterAttachable<ILoggingEvent>, LifeCycle
In order to optimize performance this appender deems events of level TRACE,
DEBUG and INFO as discardable. See the
chapter
on appenders in the manual for further information.
- Since:
- 1.0.4
- Author:
- Ceki Gülcü
-
Field Summary
Fields inherited from class AsyncAppenderBase
DEFAULT_MAX_FLUSH_TIME, DEFAULT_QUEUE_SIZEFields inherited from class UnsynchronizedAppenderBase
name, startedFields inherited from class ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisDiscardable(ILoggingEvent event) Events of level TRACE, DEBUG and INFO are deemed to be discardable.booleanprotected voidpreprocess(ILoggingEvent eventObject) Pre-process the event prior to queueing.voidsetIncludeCallerData(boolean includeCallerData) Methods inherited from class AsyncAppenderBase
addAppender, append, detachAndStopAllAppenders, detachAppender, detachAppender, getAppender, getDiscardingThreshold, getMaxFlushTime, getNumberOfElementsInQueue, getQueueSize, getRemainingCapacity, isAttached, isNeverBlock, isQueueBelowDiscardingThreshold, iteratorForAppenders, setDiscardingThreshold, setMaxFlushTime, setNeverBlock, setQueueSize, start, stopMethods inherited from class UnsynchronizedAppenderBase
addFilter, buildReentryGuard, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toStringMethods inherited from class ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Constructor Details
-
AsyncAppender
public AsyncAppender()
-
-
Method Details
-
isDiscardable
Events of level TRACE, DEBUG and INFO are deemed to be discardable.- Overrides:
isDiscardablein classAsyncAppenderBase<ILoggingEvent>- Parameters:
event-- Returns:
- true if the event is of level TRACE, DEBUG or INFO false otherwise.
-
preprocess
Description copied from class:AsyncAppenderBasePre-process the event prior to queueing. The base class does no pre-processing but subclasses can override this behavior.- Overrides:
preprocessin classAsyncAppenderBase<ILoggingEvent>- Parameters:
eventObject-
-
isIncludeCallerData
-
setIncludeCallerData
-