org.apache.logging.log4j.core.config
Class AppenderRef
java.lang.Object
org.apache.logging.log4j.core.config.AppenderRef
@Plugin(name="AppenderRef",
category="Core",
printObject=true)
@PluginAliases(value="appender-ref")
public final class AppenderRef
- extends Object
An Appender reference.
getRef
public String getRef()
getLevel
public org.apache.logging.log4j.Level getLevel()
getFilter
public Filter getFilter()
toString
public String toString()
- Overrides:
toString
in class Object
createAppenderRef
@PluginFactory
public static AppenderRef createAppenderRef(@PluginAttribute(value="ref")
String ref,
@PluginAttribute(value="level")
org.apache.logging.log4j.Level level,
@PluginElement(value="Filter")
Filter filter)
- Create an Appender reference.
- Parameters:
ref
- The name of the Appender.level
- The Level to filter against.filter
- The filter(s) to use.
- Returns:
- The name of the Appender.
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.