public class AppenderControl extends AbstractFilterable
Appender
with details an appender implementation shouldn't need to know about.LOGGER
Constructor and Description |
---|
AppenderControl(Appender appender,
org.apache.logging.log4j.Level level,
Filter filter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
callAppender(LogEvent event)
Call the appender.
|
Appender |
getAppender()
Returns the Appender.
|
addFilter, getFilter, hasFilter, isFiltered, removeFilter, startFilter, stopFilter
public AppenderControl(Appender appender, org.apache.logging.log4j.Level level, Filter filter)
appender
- The target Appender.level
- the Level to filter on.filter
- the Filter(s) to apply.public Appender getAppender()
public void callAppender(LogEvent event)
event
- The event to process.Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.