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
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
Fields inherited from class ch.qos.logback.core.AppenderBase
name, started
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected abstract boolean
eventMarksEndOfLife
(E event) int
protected abstract long
getTimestamp
(E event) void
setAppenderFactory
(AppenderFactory<E> appenderFactory) This setter is intended to be invoked by SiftModelHandler.void
setDiscriminator
(Discriminator<E> discriminator) void
setMaxAppenderCount
(int maxAppenderCount) void
setSiftModel
(SiftModel siftModel) void
setTimeout
(Duration timeout) void
start()
void
stop()
Methods inherited from class ch.qos.logback.core.AppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
start
in interfaceLifeCycle
- Overrides:
start
in classAppenderBase<E>
-
stop
- Specified by:
stop
in interfaceLifeCycle
- Overrides:
stop
in classAppenderBase<E>
-
getTimestamp
-
append
- Specified by:
append
in classAppenderBase<E>
-
eventMarksEndOfLife
-
getDiscriminator
-
setDiscriminator
-
getAppenderTracker
- Since:
- 0.9.19
-
getDiscriminatorKey
-