Class AppenderControl
- java.lang.Object
-
- org.apache.logging.log4j.core.AbstractLifeCycle
-
- org.apache.logging.log4j.core.filter.AbstractFilterable
-
- org.apache.logging.log4j.core.config.AppenderControl
-
- All Implemented Interfaces:
Filterable
,LifeCycle
,LifeCycle2
public class AppenderControl extends AbstractFilterable
Wraps anAppender
with details an appender implementation shouldn't need to know about.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable
AbstractFilterable.Builder<B extends AbstractFilterable.Builder<B>>
-
Nested classes/interfaces inherited from interface org.apache.logging.log4j.core.LifeCycle
LifeCycle.State
-
-
Field Summary
-
Fields inherited from class org.apache.logging.log4j.core.AbstractLifeCycle
DEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNIT, LOGGER
-
-
Constructor Summary
Constructors Constructor Description AppenderControl(Appender appender, Level level, Filter filter)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
callAppender(LogEvent event)
Call the appender.boolean
equals(Object obj)
Appender
getAppender()
Returns the Appender.String
getAppenderName()
Returns the name the appender had when this AppenderControl was constructed.int
hashCode()
String
toString()
-
Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable
addFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, start, stop, stop
-
Methods inherited from class org.apache.logging.log4j.core.AbstractLifeCycle
equalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop, stop
-
-
-
-
Method Detail
-
getAppenderName
public String getAppenderName()
Returns the name the appender had when this AppenderControl was constructed.- Returns:
- the appender name
-
getAppender
public Appender getAppender()
Returns the Appender.- Returns:
- the Appender.
-
callAppender
public void callAppender(LogEvent event)
Call the appender.- Parameters:
event
- The event to process.
-
-