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 in
logback.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.-
Field Summary
Fields inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
name, startedFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAppender(ch.qos.logback.core.Appender<E> a) voidvoidbooleandetachAppender(ch.qos.logback.core.Appender<E> x$1) booleandetachAppender(String x$1) ch.qos.logback.core.Appender<E>getAppender(String x$1) booleanisAttached(ch.qos.logback.core.Appender<E> x$1) Methods inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, start, stop, toStringMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Constructor Details
-
Slf4jAppender
public Slf4jAppender()
-
-
Method Details
-
addAppender
- Specified by:
addAppenderin interfacech.qos.logback.core.spi.AppenderAttachable<E>
-
append
- Specified by:
appendin classch.qos.logback.core.UnsynchronizedAppenderBase<E>
-
detachAndStopAllAppenders
public void detachAndStopAllAppenders()- Specified by:
detachAndStopAllAppendersin interfacech.qos.logback.core.spi.AppenderAttachable<E>
-
detachAppender
- Specified by:
detachAppenderin interfacech.qos.logback.core.spi.AppenderAttachable<E>
-
detachAppender
- Specified by:
detachAppenderin interfacech.qos.logback.core.spi.AppenderAttachable<E>
-
getAppender
- Specified by:
getAppenderin interfacech.qos.logback.core.spi.AppenderAttachable<E>
-
isAttached
- Specified by:
isAttachedin interfacech.qos.logback.core.spi.AppenderAttachable<E>
-
iteratorForAppenders
- Specified by:
iteratorForAppendersin interfacech.qos.logback.core.spi.AppenderAttachable<E>
-