com.twitter.common.util.logging
Class ResourceLoggingConfigurator

java.lang.Object
  extended by com.twitter.common.util.logging.ResourceLoggingConfigurator

public class ResourceLoggingConfigurator
extends Object

A custom java.util.logging configuration class that loads the logging configuration from a properties file resource (as opposed to a file as natively supported by LogManager via java.util.logging.config.file). By default this configurator will look for the resource at /logging.properties but the resource path can be overridden by setting the system property with key java.util.logging.config.resource. To install this configurator you must specify the following system property: java.util.logging.config.class=com.twitter.common.util.logging.ResourceLoggingConfigurator


Field Summary
static String LOGGING_PROPERTIES_RESOURCE_PATH
          A system property that controls where ResourceLoggingConfigurator looks for the logging configuration on the process classpath.
 
Constructor Summary
ResourceLoggingConfigurator()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGING_PROPERTIES_RESOURCE_PATH

public static final String LOGGING_PROPERTIES_RESOURCE_PATH
A system property that controls where ResourceLoggingConfigurator looks for the logging configuration on the process classpath.

See Also:
Constant Field Values
Constructor Detail

ResourceLoggingConfigurator

public ResourceLoggingConfigurator()
                            throws IOException
Throws:
IOException