Class 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 Detail

      • FallbackAppenderRef

        public FallbackAppenderRef()
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface ch.qos.logback.core.spi.LifeCycle
      • stop

        public void stop()
        Specified by:
        stop in interface ch.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:
        isStarted in interface ch.qos.logback.core.spi.LifeCycle