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
Wraps an
Appender
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
callAppender
(LogEvent event) Call the appender.boolean
Returns the Appender.Returns the name the appender had when this AppenderControl was constructed.int
hashCode()
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
-
Constructor Details
-
AppenderControl
Constructor.- Parameters:
appender
- The target Appender.level
- the Level to filter on.filter
- the Filter(s) to apply.
-
-
Method Details
-
getAppenderName
Returns the name the appender had when this AppenderControl was constructed.- Returns:
- the appender name
-
getAppender
Returns the Appender.- Returns:
- the Appender.
-
callAppender
Call the appender.- Parameters:
event
- The event to process.
-
equals
-
hashCode
public int hashCode() -
toString
-