public abstract class AppenderBase<E> extends ContextAwareBase implements Appender<E>
For more information about this appender, please refer to the online manual at http://logback.qos.ch/manual/appenders.html#AppenderBase
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
name
Appenders are named.
|
protected boolean |
started |
context| Constructor and Description |
|---|
AppenderBase() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.util.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.
|
java.lang.String |
getName()
Get the name of this appender.
|
boolean |
isStarted() |
void |
setName(java.lang.String name)
Set the name of this appender.
|
void |
start() |
void |
stop() |
java.lang.String |
toString() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContextprotected boolean started
protected java.lang.String name
public java.lang.String getName()
Appenderpublic void doAppend(E eventObject)
Appenderprotected abstract void append(E eventObject)
public void setName(java.lang.String name)
public java.lang.String toString()
toString in class java.lang.Objectpublic void addFilter(Filter<E> newFilter)
FilterAttachableaddFilter in interface FilterAttachable<E>public void clearAllFilters()
clearAllFilters in interface FilterAttachable<E>public java.util.List<Filter<E>> getCopyOfAttachedFiltersList()
FilterAttachablegetCopyOfAttachedFiltersList in interface FilterAttachable<E>public FilterReply getFilterChainDecision(E event)
FilterAttachablegetFilterChainDecision in interface FilterAttachable<E>