org.apache.logging.log4j.core.config
Class JSONConfiguration

java.lang.Object
  extended by org.apache.logging.log4j.core.filter.AbstractFilterable
      extended by org.apache.logging.log4j.core.config.BaseConfiguration
          extended by org.apache.logging.log4j.core.config.JSONConfiguration
All Implemented Interfaces:
Configuration, Reconfigurable, Filterable

public class JSONConfiguration
extends BaseConfiguration
implements Reconfigurable

Creates a Node hierarchy from a JSON file.


Field Summary
 
Fields inherited from class org.apache.logging.log4j.core.config.BaseConfiguration
advertisedConfiguration, isShutdownHookEnabled, listeners, LOGGER, monitor, pluginManager, rootNode
 
Fields inherited from interface org.apache.logging.log4j.core.config.Configuration
CONTEXT_PROPERTIES
 
Constructor Summary
JSONConfiguration(ConfigurationFactory.ConfigurationSource configSource)
           
 
Method Summary
 Configuration reconfigure()
           
 void setup()
           
 void stop()
          Tear down the configuration.
protected  byte[] toByteArray(InputStream is)
           
 
Methods inherited from class org.apache.logging.log4j.core.config.BaseConfiguration
addAppender, addComponent, addListener, addLogger, addLoggerAppender, addLoggerFilter, createAdvertiser, createConfiguration, doConfigure, getAdvertiser, getAppender, getAppenders, getComponent, getConfigurationMonitor, getDefaultStatus, getLogger, getLoggerConfig, getLoggers, getName, getProperties, getRootLogger, getStrSubstitutor, isShutdownHookEnabled, removeAppender, removeListener, removeLogger, setAdvertiser, setConfigurationMonitor, setLoggerAdditive, setName, start
 
Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable
addFilter, getFilter, hasFilter, isFiltered, removeFilter, startFilter, stopFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.logging.log4j.core.filter.Filterable
addFilter, getFilter, hasFilter, isFiltered, removeFilter
 

Constructor Detail

JSONConfiguration

public JSONConfiguration(ConfigurationFactory.ConfigurationSource configSource)
Method Detail

stop

public void stop()
Description copied from class: BaseConfiguration
Tear down the configuration.

Specified by:
stop in interface Configuration
Overrides:
stop in class BaseConfiguration

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-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.