Package ch.qos.logback.core.spi
Interface AppenderAttachable<E>
- All Known Implementing Classes:
AppenderAttachableImpl,AsyncAppenderBase
public interface AppenderAttachable<E>
Interface for attaching appenders to objects.
- Author:
- Ceki Gülcü
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAppender(Appender<E> newAppender)Add an appender.voidDetach and processPriorToRemoval all previously added appenders.booleandetachAppender(Appender<E> appender)Detach the appender passed as parameter from the list of appenders.booleandetachAppender(String name)Detach the appender with the name passed as parameter from the list of appenders.getAppender(String name)Get an appender by name.booleanisAttached(Appender<E> appender)Returnstrueif the specified appender is in list of attached attached,falseotherwise.Get an iterator for appenders contained in the parent object.
-
Method Details
-
addAppender
Add an appender. -
iteratorForAppenders
Get an iterator for appenders contained in the parent object. -
getAppender
Get an appender by name. -
isAttached
Returnstrueif the specified appender is in list of attached attached,falseotherwise. -
detachAndStopAllAppenders
void detachAndStopAllAppenders()Detach and processPriorToRemoval all previously added appenders. -
detachAppender
Detach the appender passed as parameter from the list of appenders. -
detachAppender
Detach the appender with the name passed as parameter from the list of appenders.
-