|
Logback API Version 0.9.8 |
|||||||||
| 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>
This class is used to manage base functionnalities of all 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 newFilter)
Add a filter. |
protected abstract void |
append(E eventObject)
|
void |
clearAllFilters()
|
void |
doAppend(E eventObject)
This is where an appender accomplishes its work. |
FilterReply |
getFilterChainDecision(Object event)
Loop through the filters in the chain. |
Filter |
getFirstFilter()
Get first filter in the chain. |
Layout<E> |
getLayout()
Returns this appenders layout. |
String |
getName()
Get the name of this appender. |
boolean |
isStarted()
|
void |
setLayout(Layout<E> layout)
Set the Layout for this appender. |
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, 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 LifeCyclepublic void stop()
stop in interface LifeCyclepublic boolean isStarted()
isStarted in interface LifeCyclepublic String toString()
toString in class Objectpublic void addFilter(Filter newFilter)
FilterAttachable
addFilter in interface FilterAttachablepublic Filter getFirstFilter()
FilterAttachable
getFirstFilter in interface FilterAttachablepublic void clearAllFilters()
clearAllFilters in interface FilterAttachablepublic FilterReply getFilterChainDecision(Object event)
FilterAttachable
getFilterChainDecision in interface FilterAttachablepublic Layout<E> getLayout()
Appender
getLayout in interface Appender<E>public void setLayout(Layout<E> layout)
AppenderLayout for this appender.
setLayout in interface Appender<E>
|
Logback API Version 0.9.8 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||