org.apache.log4j.helpers
Class AppenderAttachableImpl
- AppenderAttachable
public class AppenderAttachableImpl
appenderList
protected Vector appenderList
Array of appenders.
appendLoopOnAppenders
public int appendLoopOnAppenders(LoggingEvent event)
Call the doAppend
method on all attached appenders.
getAllAppenders
public Enumeration getAllAppenders()
Get all attached appenders as an Enumeration. If there are no
attached appenders null
is returned.
- getAllAppenders in interface AppenderAttachable
- Enumeration An enumeration of attached appenders.
getAppender
public Appender getAppender(String name)
Look for an attached appender named as
name
.
Return the appender with that name if in the list. Return null
otherwise.
- getAppender in interface AppenderAttachable
isAttached
public boolean isAttached(Appender appender)
Returns true
if the specified appender is in the
list of attached appenders, false
otherwise.
- isAttached in interface AppenderAttachable
removeAppender
public void removeAppender(String name)
Remove the appender with the name passed as parameter form the
list of appenders.
- removeAppender in interface AppenderAttachable
Copyright 2000-2005 Apache Software Foundation.