- All Known Implementing Classes:
AppenderAttachableImpl
,AsyncAppender
,AsyncAppenderBase
,Logger
public interface AppenderAttachable<E>
Interface for attaching appenders to objects.
- Author:
- Ceki Gülcü
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAppender
(Appender<E> newAppender) Add an appender.void
Detach and processPriorToRemoval all previously added appenders.boolean
detachAppender
(Appender<E> appender) Detach the appender passed as parameter from the list of appenders.boolean
detachAppender
(String name) Detach the appender with the name passed as parameter from the list of appenders.getAppender
(String name) Get an appender by name.boolean
isAttached
(Appender<E> appender) Returnstrue
if the specified appender is in list of attached,false
otherwise.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
Returnstrue
if the specified appender is in list of attached,false
otherwise. -
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.
-