org.apache.logging.log4j.core.config
Class JSONConfiguration
java.lang.Object
org.apache.logging.log4j.core.filter.Filterable
org.apache.logging.log4j.core.config.BaseConfiguration
org.apache.logging.log4j.core.config.JSONConfiguration
- All Implemented Interfaces:
- Configuration, Reconfigurable, Filtering
public class JSONConfiguration
- extends BaseConfiguration
- implements Reconfigurable
Creates a Node hierarchy from a JSON file.
Methods inherited from class org.apache.logging.log4j.core.config.BaseConfiguration |
addAppender, addComponent, addListener, addLogger, addLoggerAppender, addLoggerFilter, createConfiguration, doConfigure, getAppender, getAppenders, getComponent, getConfigurationMonitor, getLogger, getLoggerConfig, getLoggers, getName, getPluginManager, getRootLogger, getSubst, removeAppender, removeListener, removeLogger, setLoggerAdditive, setName, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSONConfiguration
public JSONConfiguration(InputSource source,
File configFile)
setup
public void setup()
- Overrides:
setup
in class BaseConfiguration
reconfigure
public Configuration reconfigure()
- Specified by:
reconfigure
in interface Reconfigurable
toByteArray
protected byte[] toByteArray(InputStream is)
throws IOException
- Throws:
IOException
Copyright © 1999-2012 Apache Software Foundation. All Rights Reserved.