Package chapters.migrationFromLog4j
Class TrivialLogbackAppender
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.AppenderBase<ILoggingEvent>
-
- chapters.migrationFromLog4j.TrivialLogbackAppender
-
- All Implemented Interfaces:
Appender<ILoggingEvent>,ContextAware,FilterAttachable<ILoggingEvent>,LifeCycle
public class TrivialLogbackAppender extends AppenderBase<ILoggingEvent>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Layout<ILoggingEvent>layout-
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 TrivialLogbackAppender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappend(ILoggingEvent loggingEvent)Layout<ILoggingEvent>getLayout()voidsetLayout(Layout<ILoggingEvent> layout)voidstart()-
Methods inherited from class ch.qos.logback.core.AppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, 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 Detail
-
layout
Layout<ILoggingEvent> layout
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceLifeCycle- Overrides:
startin classAppenderBase<ILoggingEvent>
-
append
protected void append(ILoggingEvent loggingEvent)
- Specified by:
appendin classAppenderBase<ILoggingEvent>
-
getLayout
public Layout<ILoggingEvent> getLayout()
-
setLayout
public void setLayout(Layout<ILoggingEvent> layout)
-
-