|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<E>
public abstract class AppenderBase<E>
Sets a skeleton implementation for appenders.
For more information about this appender, please refer to the online manual at http://logback.qos.ch/manual/appenders.html#AppenderBase
Field Summary | |
---|---|
protected String |
name
Appenders are named. |
protected boolean |
started
|
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase |
---|
context |
Constructor Summary | |
---|---|
AppenderBase()
|
Method Summary | |
---|---|
void |
addFilter(Filter<E> newFilter)
Add a filter. |
protected abstract void |
append(E eventObject)
|
void |
clearAllFilters()
|
void |
doAppend(E eventObject)
This is where an appender accomplishes its work. |
List<Filter<E>> |
getCopyOfAttachedFiltersList()
Get a copy of all the filters contained within this FilterAttachable object. |
FilterReply |
getFilterChainDecision(E event)
Loop through the filters in the chain. |
String |
getName()
Get the name of this appender. |
boolean |
isStarted()
|
void |
setName(String name)
Set the name of this appender. |
void |
start()
|
void |
stop()
|
String |
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 |
---|
protected boolean started
protected String name
Constructor Detail |
---|
public AppenderBase()
Method Detail |
---|
public String getName()
Appender
getName
in interface Appender<E>
public void doAppend(E eventObject)
Appender
doAppend
in interface Appender<E>
protected abstract void append(E eventObject)
public void setName(String name)
setName
in interface Appender<E>
public void start()
start
in interface LifeCycle
public void stop()
stop
in interface LifeCycle
public boolean isStarted()
isStarted
in interface LifeCycle
public String toString()
toString
in class Object
public void addFilter(Filter<E> newFilter)
FilterAttachable
addFilter
in interface FilterAttachable<E>
public void clearAllFilters()
clearAllFilters
in interface FilterAttachable<E>
public List<Filter<E>> getCopyOfAttachedFiltersList()
FilterAttachable
getCopyOfAttachedFiltersList
in interface FilterAttachable<E>
public FilterReply getFilterChainDecision(E event)
FilterAttachable
getFilterChainDecision
in interface FilterAttachable<E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |