Package csw.logging.client.compat
Class Slf4jAppender<E>
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.UnsynchronizedAppenderBase<E>
-
- csw.logging.client.compat.Slf4jAppender<E>
-
- All Implemented Interfaces:
ch.qos.logback.core.Appender<E>,ch.qos.logback.core.spi.AppenderAttachable<E>,ch.qos.logback.core.spi.ContextAware,ch.qos.logback.core.spi.FilterAttachable<E>,ch.qos.logback.core.spi.LifeCycle
public class Slf4jAppender<E> extends ch.qos.logback.core.UnsynchronizedAppenderBase<E> implements ch.qos.logback.core.spi.AppenderAttachable<E>This class is wired up as appender inlogback.xml. The instance of this class is created via reflection. When log statement from SLF4J code is executed, a message is sent to this class. Then this class will simply process the received message and forward it to underlying logging code.
-
-
Constructor Summary
Constructors Constructor Description Slf4jAppender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAppender(ch.qos.logback.core.Appender<E> a)voidappend(E event)voiddetachAndStopAllAppenders()booleandetachAppender(ch.qos.logback.core.Appender<E> x$1)booleandetachAppender(java.lang.String x$1)ch.qos.logback.core.Appender<E>getAppender(java.lang.String x$1)booleanisAttached(ch.qos.logback.core.Appender<E> x$1)java.util.Iterator<ch.qos.logback.core.Appender<E>>iteratorForAppenders()-
Methods inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
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
-
-
-
-
Method Detail
-
addAppender
public void addAppender(ch.qos.logback.core.Appender<E> a)
- Specified by:
addAppenderin interfacech.qos.logback.core.spi.AppenderAttachable<E>
-
append
public void append(E event)
- Specified by:
appendin classch.qos.logback.core.UnsynchronizedAppenderBase<E>
-
detachAndStopAllAppenders
public void detachAndStopAllAppenders()
- Specified by:
detachAndStopAllAppendersin interfacech.qos.logback.core.spi.AppenderAttachable<E>
-
detachAppender
public boolean detachAppender(java.lang.String x$1)
- Specified by:
detachAppenderin interfacech.qos.logback.core.spi.AppenderAttachable<E>
-
detachAppender
public boolean detachAppender(ch.qos.logback.core.Appender<E> x$1)
- Specified by:
detachAppenderin interfacech.qos.logback.core.spi.AppenderAttachable<E>
-
getAppender
public ch.qos.logback.core.Appender<E> getAppender(java.lang.String x$1)
- Specified by:
getAppenderin interfacech.qos.logback.core.spi.AppenderAttachable<E>
-
isAttached
public boolean isAttached(ch.qos.logback.core.Appender<E> x$1)
- Specified by:
isAttachedin interfacech.qos.logback.core.spi.AppenderAttachable<E>
-
-