Class FallbackAppenderRef
java.lang.Object
ch.qos.logback.core.spi.AppenderAttachableImpl<ch.qos.logback.classic.spi.ILoggingEvent>
ch.admin.bag.covidcertificate.log.async.FallbackAppenderRef
- All Implemented Interfaces:
ch.qos.logback.core.spi.AppenderAttachable<ch.qos.logback.classic.spi.ILoggingEvent>,ch.qos.logback.core.spi.LifeCycle
public final class FallbackAppenderRef
extends ch.qos.logback.core.spi.AppenderAttachableImpl<ch.qos.logback.classic.spi.ILoggingEvent>
implements ch.qos.logback.core.spi.LifeCycle
An appender reference holder for configuring a fallback appender in the logback configuration:
<fallback>
<appender-ref name="my-appender"/>
</fallback>
-
Constructor Summary
Constructors Constructor Description FallbackAppenderRef() -
Method Summary
Modifier and Type Method Description voidappendToFallbackAppender(ch.qos.logback.classic.spi.ILoggingEvent loggingEvent, String reason)booleanisStarted()voidnotifyFallbackDeactivated()voidstart()voidstop()Methods inherited from class ch.qos.logback.core.spi.AppenderAttachableImpl
addAppender, appendLoopOnAppenders, detachAndStopAllAppenders, detachAppender, detachAppender, getAppender, isAttached, iteratorForAppenders
-
Constructor Details
-
FallbackAppenderRef
public FallbackAppenderRef()
-
-
Method Details
-
start
public void start()- Specified by:
startin interfacech.qos.logback.core.spi.LifeCycle
-
stop
public void stop()- Specified by:
stopin interfacech.qos.logback.core.spi.LifeCycle
-
appendToFallbackAppender
public void appendToFallbackAppender(ch.qos.logback.classic.spi.ILoggingEvent loggingEvent, String reason) -
notifyFallbackDeactivated
public void notifyFallbackDeactivated() -
isStarted
public boolean isStarted()- Specified by:
isStartedin interfacech.qos.logback.core.spi.LifeCycle
-