Top Description Fields Constructors Methods
ch.qos.logback.classic

public Class AsyncAppender

extends AsyncAppenderBase<ILoggingEvent>
Class Inheritance
Imports
ch.qos.logback.classic.spi.ILoggingEvent, ch.qos.logback.core.AsyncAppenderBase

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.
Author
Ceki Gülcü
Since
1.0.4

Field Summary

Modifier and TypeField and Description
pack-priv boolean
Inherited from ch.qos.logback.core.AsyncAppenderBase:
DEFAULT_MAX_FLUSH_TIMEDEFAULT_QUEUE_SIZE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected boolean

Returns:

true if the event is of level TRACE, DEBUG or INFO false otherwise.
isDiscardable
(ILoggingEvent event)

Overrides ch.qos.logback.core.AsyncAppenderBase.isDiscardable.

Events of level TRACE, DEBUG and INFO are deemed to be discardable.
public boolean
protected void
preprocess(ILoggingEvent eventObject)

Overrides ch.qos.logback.core.AsyncAppenderBase.preprocess.

Pre-process the event prior to queueing.
public void
setIncludeCallerData(boolean includeCallerData)

Inherited from ch.qos.logback.core.AsyncAppenderBase:
addAppenderappenddetachAndStopAllAppendersdetachAppenderdetachAppendergetAppendergetDiscardingThresholdgetMaxFlushTimegetNumberOfElementsInQueuegetQueueSizegetRemainingCapacityisAttachedisNeverBlockiteratorForAppenderssetDiscardingThresholdsetMaxFlushTimesetNeverBlocksetQueueSizestartstop

Field Detail

includeCallerDataback to summary
pack-priv boolean includeCallerData

Constructor Detail

AsyncAppenderback to summary
public AsyncAppender()

Method Detail

isDiscardableback to summary
protected boolean isDiscardable(ILoggingEvent event)

Overrides ch.qos.logback.core.AsyncAppenderBase.isDiscardable.

Events of level TRACE, DEBUG and INFO are deemed to be discardable.

Returns:boolean

true if the event is of level TRACE, DEBUG or INFO false otherwise.

isIncludeCallerDataback to summary
public boolean isIncludeCallerData()
preprocessback to summary
protected void preprocess(ILoggingEvent eventObject)

Overrides ch.qos.logback.core.AsyncAppenderBase.preprocess.

Doc from ch.qos.logback.core.AsyncAppenderBase.preprocess.

Pre-process the event prior to queueing. The base class does no pre-processing but subclasses can override this behavior.

setIncludeCallerDataback to summary
public void setIncludeCallerData(boolean includeCallerData)