java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<ILoggingEvent>
ch.qos.logback.core.sift.SiftingAppenderBase<ILoggingEvent>
ch.qos.logback.classic.sift.SiftingAppender
- All Implemented Interfaces:
Appender<ILoggingEvent>
,ContextAware
,FilterAttachable<ILoggingEvent>
,LifeCycle
This appender can contain other appenders which it can build dynamically
depending on MDC values. The built appender is specified as part of a
configuration file.
See the logback manual for further details.
- Author:
- Ceki Gulcu
-
Field Summary
Fields inherited from class ch.qos.logback.core.sift.SiftingAppenderBase
appenderTracker
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 boolean
eventMarksEndOfLife
(ILoggingEvent event) protected long
getTimestamp
(ILoggingEvent event) void
setDiscriminator
(Discriminator<ILoggingEvent> discriminator) Methods inherited from class ch.qos.logback.core.sift.SiftingAppenderBase
append, getAppenderTracker, getDiscriminator, getDiscriminatorKey, getMaxAppenderCount, getSiftModel, getTimeout, setAppenderFactory, setMaxAppenderCount, setSiftModel, setTimeout, start, 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
-
Constructor Details
-
SiftingAppender
public SiftingAppender()
-
-
Method Details
-
getTimestamp
- Specified by:
getTimestamp
in classSiftingAppenderBase<ILoggingEvent>
-
setDiscriminator
- Overrides:
setDiscriminator
in classSiftingAppenderBase<ILoggingEvent>
-
eventMarksEndOfLife
- Specified by:
eventMarksEndOfLife
in classSiftingAppenderBase<ILoggingEvent>
-