List of usage examples for org.apache.commons.configuration PropertiesConfiguration reload
public void reload()
From source file:com.cisco.oss.foundation.logging.FoundationLoggerConfiguration.java
private void initiateLog4jPropertiesFallback(Layout layout) { URL resource = this.getClass().getResource(DEFAULT_CONFIGURATION_FILE); if (resource != null) { try {/*from w w w . j a va2 s .co m*/ PropertiesConfiguration.setDefaultListDelimiter('~'); PropertiesConfiguration propertiesConfiguration = new PropertiesConfiguration(resource); propertiesConfiguration.setDelimiterParsingDisabled(true); propertiesConfiguration.reload(); init(propertiesConfiguration, layout); } catch (Exception e) { System.err.println("ERROR: can't load log4j.properties: " + e.toString()); } } else { System.err.println("can't load log4j.properties - not found in classpath"); } }