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, started
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAppender
(ch.qos.logback.core.Appender<E> a) void
void
boolean
detachAppender
(ch.qos.logback.core.Appender<E> x$1) boolean
detachAppender
(String x$1) ch.qos.logback.core.Appender<E>
getAppender
(String x$1) boolean
isAttached
(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, 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
-
Constructor Details
-
Slf4jAppender
public Slf4jAppender()
-
-
Method Details
-
addAppender
- Specified by:
addAppender
in interfacech.qos.logback.core.spi.AppenderAttachable<E>
-
append
- Specified by:
append
in classch.qos.logback.core.UnsynchronizedAppenderBase<E>
-
detachAndStopAllAppenders
public void detachAndStopAllAppenders()- Specified by:
detachAndStopAllAppenders
in interfacech.qos.logback.core.spi.AppenderAttachable<E>
-
detachAppender
- Specified by:
detachAppender
in interfacech.qos.logback.core.spi.AppenderAttachable<E>
-
detachAppender
- Specified by:
detachAppender
in interfacech.qos.logback.core.spi.AppenderAttachable<E>
-
getAppender
- Specified by:
getAppender
in interfacech.qos.logback.core.spi.AppenderAttachable<E>
-
isAttached
- Specified by:
isAttached
in interfacech.qos.logback.core.spi.AppenderAttachable<E>
-
iteratorForAppenders
- Specified by:
iteratorForAppenders
in interfacech.qos.logback.core.spi.AppenderAttachable<E>
-