|
||||||||||
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 Layout<E> |
layout
The layout variable does not need to be set depending on the appender. |
protected java.lang.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. |
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. |
Filter |
getFirstFilter()
Get first filter in the chain. |
Layout<E> |
getLayout()
Returns the layout of this appender. |
java.lang.String |
getName()
Get the name of this appender. |
boolean |
isStarted()
|
void |
setLayout(Layout<E> layout)
Set the layout for this appender. |
void |
setName(java.lang.String name)
Set the name of this appender. |
void |
start()
|
void |
stop()
|
java.lang.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 Layout<E> layout
protected boolean started
protected java.lang.String name
Constructor Detail |
---|
public AppenderBase()
Method Detail |
---|
public java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
public void addFilter(Filter<E> newFilter)
FilterAttachable
addFilter
in interface FilterAttachable<E>
public Filter getFirstFilter()
FilterAttachable
getFirstFilter
in interface FilterAttachable<E>
public void clearAllFilters()
clearAllFilters
in interface FilterAttachable<E>
public java.util.List<Filter<E>> getCopyOfAttachedFiltersList()
FilterAttachable
getCopyOfAttachedFiltersList
in interface FilterAttachable<E>
public FilterReply getFilterChainDecision(E event)
FilterAttachable
getFilterChainDecision
in interface FilterAttachable<E>
public Layout<E> getLayout()
getLayout
in interface Appender<E>
public void setLayout(Layout<E> layout)
setLayout
in interface Appender<E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |