public class AppenderAttachableImpl extends java.lang.Object implements AppenderAttachable
AppenderAttachable
interface.限定符和类型 | 字段和说明 |
---|---|
protected java.util.Vector |
appenderList
Array of appenders.
|
构造器和说明 |
---|
AppenderAttachableImpl() |
限定符和类型 | 方法和说明 |
---|---|
void |
addAppender(Appender newAppender)
Attach an appender.
|
int |
appendLoopOnAppenders(LoggingEvent event)
Call the
doAppend method on all attached appenders. |
java.util.Enumeration |
getAllAppenders()
Get all attached appenders as an Enumeration.
|
Appender |
getAppender(java.lang.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(java.lang.String name)
Remove the appender with the name passed as parameter form the
list of appenders.
|
public void addAppender(Appender newAppender)
addAppender
在接口中 AppenderAttachable
public int appendLoopOnAppenders(LoggingEvent event)
doAppend
method on all attached appenders.public java.util.Enumeration getAllAppenders()
null
is returned.getAllAppenders
在接口中 AppenderAttachable
public Appender getAppender(java.lang.String name)
name
.
Return the appender with that name if in the list. Return null otherwise.
getAppender
在接口中 AppenderAttachable
public boolean isAttached(Appender appender)
true
if the specified appender is in the
list of attached appenders, false
otherwise.isAttached
在接口中 AppenderAttachable
public void removeAllAppenders()
removeAllAppenders
在接口中 AppenderAttachable
public void removeAppender(Appender appender)
removeAppender
在接口中 AppenderAttachable
public void removeAppender(java.lang.String name)
removeAppender
在接口中 AppenderAttachable