Class DelegatingAppender<T>

java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<T>
org.springframework.geode.logging.slf4j.logback.DelegatingAppender<T>
All Implemented Interfaces:
ch.qos.logback.core.Appender<T>, ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.FilterAttachable<T>, ch.qos.logback.core.spi.LifeCycle

public class DelegatingAppender<T> extends ch.qos.logback.core.AppenderBase<T>
DelegatingAppender is an SLF4J Appender that delegates to the configured Appender. If no Appender was configured, then the DelegatingAppender delegates to the NOPAppender.
Since:
1.3.0
See Also:
  • Appender
  • AppenderBase
  • NOPAppender
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final ch.qos.logback.core.Appender
     
    protected static final String
     

    Fields inherited from class ch.qos.logback.core.AppenderBase

    name, started

    Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase

    context
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    append(T eventObject)
     
    protected ch.qos.logback.core.Appender<T>
     
    void
    setAppender(ch.qos.logback.core.Appender<T> appender)
     

    Methods inherited from class ch.qos.logback.core.AppenderBase

    addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, start, stop, 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

    • DEFAULT_APPENDER

      protected static final ch.qos.logback.core.Appender DEFAULT_APPENDER
    • DEFAULT_NAME

      protected static final String DEFAULT_NAME
      See Also:
  • Constructor Details

    • DelegatingAppender

      public DelegatingAppender()
  • Method Details

    • setAppender

      public void setAppender(ch.qos.logback.core.Appender<T> appender)
    • getAppender

      protected ch.qos.logback.core.Appender<T> getAppender()
    • append

      protected void append(T eventObject)
      Specified by:
      append in class ch.qos.logback.core.AppenderBase<T>