|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Configuration
Interface that must be implemented to create a configuration.
Field Summary | |
---|---|
static String |
CONTEXT_PROPERTIES
Key for storing the Context properties. |
Method Summary | ||
---|---|---|
void |
addComponent(String name,
Object object)
|
|
void |
addListener(ConfigurationListener listener)
|
|
void |
addLoggerAppender(Logger logger,
Appender appender)
|
|
void |
addLoggerFilter(Logger logger,
Filter filter)
|
|
void |
createConfiguration(Node node,
LogEvent event)
|
|
Advertiser |
getAdvertiser()
|
|
Map<String,Appender> |
getAppenders()
Returns a Map containing all the Appenders and their name. |
|
|
getComponent(String name)
|
|
ConfigurationMonitor |
getConfigurationMonitor()
|
|
LoggerConfig |
getLoggerConfig(String name)
Locates the appropriate LoggerConfig for a Logger name. |
|
Map<String,LoggerConfig> |
getLoggers()
|
|
String |
getName()
Returns the configuration name. |
|
Map<String,String> |
getProperties()
|
|
StrSubstitutor |
getStrSubstitutor()
|
|
boolean |
isShutdownHookEnabled()
|
|
void |
removeListener(ConfigurationListener listener)
|
|
void |
setAdvertiser(Advertiser advertiser)
|
|
void |
setConfigurationMonitor(ConfigurationMonitor monitor)
|
|
void |
setLoggerAdditive(Logger logger,
boolean additive)
|
|
void |
start()
|
|
void |
stop()
|
Methods inherited from interface org.apache.logging.log4j.core.filter.Filterable |
---|
addFilter, getFilter, hasFilter, isFiltered, removeFilter |
Field Detail |
---|
static final String CONTEXT_PROPERTIES
Method Detail |
---|
String getName()
LoggerConfig getLoggerConfig(String name)
name
- The Logger name.
Map<String,Appender> getAppenders()
Map<String,LoggerConfig> getLoggers()
void addLoggerAppender(Logger logger, Appender appender)
void addLoggerFilter(Logger logger, Filter filter)
void setLoggerAdditive(Logger logger, boolean additive)
Map<String,String> getProperties()
void start()
void stop()
void addListener(ConfigurationListener listener)
void removeListener(ConfigurationListener listener)
StrSubstitutor getStrSubstitutor()
void createConfiguration(Node node, LogEvent event)
<T> T getComponent(String name)
void addComponent(String name, Object object)
void setConfigurationMonitor(ConfigurationMonitor monitor)
ConfigurationMonitor getConfigurationMonitor()
void setAdvertiser(Advertiser advertiser)
Advertiser getAdvertiser()
boolean isShutdownHookEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2013 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.