|
||||||||||
| 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.UnsynchronizedAppenderBase<E>
public abstract class UnsynchronizedAppenderBase<E>
Similar to AppenderBase except that derived appenders need to handle thread synchronization on their own.
| Field Summary | |
|---|---|
protected String |
name
Appenders are named. |
protected boolean |
started
|
| Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase |
|---|
context |
| Constructor Summary | |
|---|---|
UnsynchronizedAppenderBase()
|
|
| 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 UnsynchronizedAppenderBase()
| 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<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 | |||||||||