|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.acelogger.appender.BaseAppender net.sourceforge.acelogger.appender.MultipleAppender
public class MultipleAppender
An implementation of Appender used as a Multiplexer. This class should be used to append a log call to various appenders.
Constructor Summary | |
---|---|
MultipleAppender(String identifier)
Constructs a new MultipleAppender with the supplied identifier that will multiplex its calls to nowhere. |
|
MultipleAppender(String identifier,
Collection<Appender> appenders)
Constructs a new MultipleAppender with the supplied identifier that will multiplex its calls to each appender in the supplied collection. |
Method Summary | |
---|---|
boolean |
addAllAppenders(Collection<Appender> appenders)
Adds each appender in a collection to this multiplexer. |
boolean |
addAppender(Appender appender)
Adds an appender to this multiplexer. |
protected Runnable |
appendLogProcess(LogEvent call)
Defines the process used to append a log call. |
List<Appender> |
getAppenders()
Gets the appenders registered in this multiple appender. |
boolean |
removeAppender(Appender appender)
Removes an appender from this multiplexer. |
void |
setAppenders(Collection<Appender> appenders)
Sets the appenders registered in this multiple appender. |
Methods inherited from class net.sourceforge.acelogger.appender.BaseAppender |
---|
appendFooter, appendFooterProcess, appendHeader, appendHeaderProcess, appendLog, close, closeProcess, formatLogCall, getExecutor, getFormatter, getIdentifier, getThreshold, initialize, open, openProcess, setThreshold |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultipleAppender(String identifier)
identifier
- A string that identifies this appender.public MultipleAppender(String identifier, Collection<Appender> appenders)
identifier
- A string that identifies this appender.appenders
- The appenders where log calls will be multiplexed to.Method Detail |
---|
public final List<Appender> getAppenders()
public final void setAppenders(Collection<Appender> appenders)
appenders
- A collection of appenders that will be registered in this multiple appender.public final boolean addAppender(Appender appender)
appender
- The appender that should be added to the multiplexer.
public final boolean addAllAppenders(Collection<Appender> appenders)
appenders
- The appender collection that should be added to the multiplexer.
public final boolean removeAppender(Appender appender)
appender
- The appender that should be removed from this multiplexer.
protected Runnable appendLogProcess(LogEvent call)
appendLogProcess
in class BaseAppender
call
- The call that will be logged.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |