org.apache.log4j.helpers
public class AppenderAttachableImpl extends Object implements AppenderAttachable
Since: version 0.9.1
Field Summary | |
---|---|
protected Vector | appenderList Array of appenders. |
Method Summary | |
---|---|
void | addAppender(Appender newAppender)
Attach an appender. |
int | appendLoopOnAppenders(LoggingEvent event)
Call the doAppend method on all attached appenders. |
Enumeration | getAllAppenders()
Get all attached appenders as an Enumeration. |
Appender | 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. |
void | removeAllAppenders()
Remove and close all previously attached appenders.
|
void | removeAppender(Appender appender)
Remove the appender passed as parameter form the list of attached
appenders. |
void | removeAppender(String name)
Remove the appender with the name passed as parameter form the
list of appenders. |
doAppend
method on all attached appenders.null
is returned.Returns: Enumeration An enumeration of attached appenders.
name
.
Return the appender with that name if in the list. Return null otherwise.
true
if the specified appender is in the
list of attached appenders, false
otherwise.Since: 1.2