Class AppenderAdapter.Adapter
java.lang.Object
org.apache.logging.log4j.core.AbstractLifeCycle
org.apache.logging.log4j.core.filter.AbstractFilterable
org.apache.logging.log4j.core.appender.AbstractAppender
org.apache.log4j.bridge.AppenderAdapter.Adapter
- All Implemented Interfaces:
Appender, Filterable, LocationAware, LifeCycle, LifeCycle2
- Enclosing class:
AppenderAdapter
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractAppender
AbstractAppender.Builder<B>Nested classes/interfaces inherited from interface LifeCycle
LifeCycle.State -
Field Summary
Fields inherited from class AbstractLifeCycle
DEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNIT, LOGGERFields inherited from interface Appender
ELEMENT_TYPE, EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLogs a LogEvent using whatever logic this Appender wishes to use.voidstop()Methods inherited from class AbstractAppender
error, error, error, getHandler, getLayout, getName, ignoreExceptions, parseInt, requiresLocation, setHandler, toSerializable, toStringMethods inherited from class AbstractFilterable
addFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, start, stop, stopMethods inherited from class AbstractLifeCycle
equalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop
-
Constructor Details
-
Adapter
protected Adapter(String name, Filter filter, Layout<? extends Serializable> layout, boolean ignoreExceptions, Property[] properties)
-
-
Method Details
-
append
Description copied from interface:AppenderLogs a LogEvent using whatever logic this Appender wishes to use. It is typically recommended to use a bridge pattern not only for the benefits from decoupling an Appender from its implementation, but it is also handy for sharing resources which may require some form of locking.- Parameters:
event- The LogEvent.
-
stop
public void stop()- Specified by:
stopin interfaceLifeCycle- Overrides:
stopin classAbstractLifeCycle
-
getAppender
-