|
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.AppenderAttachableImpl<E>
public class AppenderAttachableImpl<E>
A straightforward implementation of the AppenderAttachable
interface.
Constructor Summary | |
---|---|
AppenderAttachableImpl()
|
Method Summary | |
---|---|
void |
addAppender(Appender<E> newAppender)
Attach an appender. |
int |
appendLoopOnAppenders(E e)
Call the doAppend method on all attached appenders. |
void |
detachAndStopAllAppenders()
Remove and stop all previously attached appenders. |
boolean |
detachAppender(Appender appender)
Remove the appender passed as parameter form the list of attached appenders. |
Appender<E> |
detachAppender(String name)
Remove the appender with the name passed as parameter form the list of appenders. |
Appender<E> |
getAppender(String name)
Look for an attached appender named as name . |
boolean |
isAttached(Appender appender)
Returns true if the specified appender is in the list of
attached appenders, false otherwise. |
Iterator |
iteratorForAppenders()
Get all attached appenders as an Enumeration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AppenderAttachableImpl()
Method Detail |
---|
public void addAppender(Appender<E> newAppender)
addAppender
in interface AppenderAttachable<E>
public int appendLoopOnAppenders(E e)
doAppend
method on all attached appenders.
public Iterator iteratorForAppenders()
null
is returned.
iteratorForAppenders
in interface AppenderAttachable<E>
public Appender<E> getAppender(String name)
name
.
Return the appender with that name if in the list. Return null otherwise.
getAppender
in interface AppenderAttachable<E>
public boolean isAttached(Appender appender)
true
if the specified appender is in the list of
attached appenders, false
otherwise.
isAttached
in interface AppenderAttachable<E>
public void detachAndStopAllAppenders()
detachAndStopAllAppenders
in interface AppenderAttachable<E>
public boolean detachAppender(Appender appender)
detachAppender
in interface AppenderAttachable<E>
public Appender<E> detachAppender(String name)
detachAppender
in interface AppenderAttachable<E>
|
Logback API Version 0.9.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |