FileDocCategorySizeDatePackage
AppenderAttachable.javaAPI DocApache log4j 1.2.151900Sat Aug 25 00:09:40 BST 2007org.apache.log4j.spi

AppenderAttachable

public interface AppenderAttachable
Interface for attaching appenders to objects.
author
Ceki Gülcü
since
0.9.1

Fields Summary
Constructors Summary
Methods Summary
public voidaddAppender(org.apache.log4j.Appender newAppender)
Add an appender.

public java.util.EnumerationgetAllAppenders()
Get all previously added appenders as an Enumeration.

public org.apache.log4j.AppendergetAppender(java.lang.String name)
Get an appender by name.

public booleanisAttached(org.apache.log4j.Appender appender)
Returns true if the specified appender is in list of attached attached, false otherwise.

since
1.2

public voidremoveAllAppenders()
Remove all previously added appenders.

public voidremoveAppender(org.apache.log4j.Appender appender)
Remove the appender passed as parameter from the list of appenders.

public voidremoveAppender(java.lang.String name)
Remove the appender with the name passed as parameter from the list of appenders.