Package ch.qos.logback.core.sift
Class SiftingAppenderBase<E>
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<E>
ch.qos.logback.core.sift.SiftingAppenderBase<E>
- All Implemented Interfaces:
Appender<E>,ContextAware,FilterAttachable<E>,LifeCycle
- Direct Known Subclasses:
SiftingAppender,SiftingAppender
This appender serves as the base class for actual SiftingAppenders
implemented by the logback-classic and logback-access modules. In a nutshell,
a SiftingAppender contains other appenders which it can build dynamically
depending on discriminating values supplied by the event currently being
processed. The appender to build (dynamically) is specified as part of a
configuration file.
- Author:
- Ceki Gülcü
-
Field Summary
FieldsFields 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 voidprotected abstract booleaneventMarksEndOfLife(E event) intprotected abstract longgetTimestamp(E event) voidsetAppenderFactory(AppenderFactory<E> appenderFactory) This setter is intended to be invoked by SiftModelHandler.voidsetDiscriminator(Discriminator<E> discriminator) voidsetMaxAppenderCount(int maxAppenderCount) voidsetSiftModel(SiftModel siftModel) voidsetTimeout(Duration timeout) 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
-
Field Details
-
appenderTracker
-
-
Constructor Details
-
SiftingAppenderBase
public SiftingAppenderBase()
-
-
Method Details
-
getTimeout
-
setTimeout
-
getSiftModel
-
setSiftModel
-
getMaxAppenderCount
-
setMaxAppenderCount
-
setAppenderFactory
This setter is intended to be invoked by SiftModelHandler. Users have no reason to invoke this method directly. -
start
- Specified by:
startin interfaceLifeCycle- Overrides:
startin classAppenderBase<E>
-
stop
- Specified by:
stopin interfaceLifeCycle- Overrides:
stopin classAppenderBase<E>
-
getTimestamp
-
append
- Specified by:
appendin classAppenderBase<E>
-
eventMarksEndOfLife
-
getDiscriminator
-
setDiscriminator
-
getAppenderTracker
- Since:
- 0.9.19
-
getDiscriminatorKey
-