@Test public void testReconfigureLogging() throws Exception { BootstrapProperties boot = new BootstrapProperties(createTestSample()); boot.put(Constants.CFG_KEY_LOGGING_RECONFIGURE, "false"); boot.reconfigureLogging(); boot.put(Constants.CFG_KEY_LOGGING_RECONFIGURE, "true"); boot.put(Constants.CFG_KEY_LOGGING_URL, "file: boot.reconfigureLogging(); boot.remove(Constants.CFG_KEY_LOGGING_URL); boot.reconfigureLogging(); }
public void reconfigureLogging() { if (isEnabled(CFG_KEY_LOGGING_RECONFIGURE)) { String loggingUrl = getPropertyIgnoringCase(this, CFG_KEY_LOGGING_URL, ""); if (!StringUtils.isEmpty(loggingUrl)) { log.trace("Attempting Logging reconfiguration using {}", loggingUrl); LoggingConfigurator.newConfigurator().initialiseFrom(loggingUrl); } } }
BootstrapProperties extends Properties { public void reconfigureLogging() { if (isEnabled(CFG_KEY_LOGGING_RECONFIGURE)) { String loggingUrl = getPropertyIgnoringCase(this, CFG_KEY_LOGGING_URL, ""); if (!StringUtils.isEmpty(loggingUrl)) { log.trace("Attempting Logging reconfiguration using {}", loggingUrl); LoggingConfigurator.newConfigurator().initialiseFrom(loggingUrl); } } } }
BootstrapProperties extends Properties { public void reconfigureLogging() { if (isEnabled(CFG_KEY_LOGGING_RECONFIGURE)) { String loggingUrl = getPropertyIgnoringCase(this, CFG_KEY_LOGGING_URL, ""); if (!StringUtils.isEmpty(loggingUrl)) { log.trace("Attempting Logging reconfiguration using {}", loggingUrl); LoggingConfigurator.newConfigurator().initialiseFrom(loggingUrl); } } } BootstrapProperties();  BootstrapProperties(String resourceName);  BootstrapProperties(Properties p); }
BootstrapProperties extends Properties { public void reconfigureLogging() { if (isEnabled(CFG_KEY_LOGGING_RECONFIGURE)) { String loggingUrl = getPropertyIgnoringCase(this, CFG_KEY_LOGGING_URL, ""); if (!StringUtils.isEmpty(loggingUrl)) { log.trace("Attempting Logging reconfiguration using {}", loggingUrl); LoggingConfigurator.newConfigurator().initialiseFrom(loggingUrl); } } } BootstrapProperties();  BootstrapProperties(String resourceName);  BootstrapProperties(Properties p); Long getProperty(String key, Long defaultValue); @Deprecated synchronized Adapter createAdapter(); InputStream getConfigurationStream(); String[] getConfigurationUrls(); @SuppressWarnings("deprecation") String findAdapterResource(); boolean isPrimaryUrlAvailable(); URLString getPrimaryUrl(); synchronized AdapterConfigManager getConfigManager(); void reconfigureLogging(); boolean isEnabled(String key); static boolean isEnabled(Properties p, String key); }
BootstrapProperties extends Properties { public void reconfigureLogging() { if (isEnabled(CFG_KEY_LOGGING_RECONFIGURE)) { String loggingUrl = getPropertyIgnoringCase(this, CFG_KEY_LOGGING_URL, ""); if (!StringUtils.isEmpty(loggingUrl)) { log.trace("Attempting Logging reconfiguration using {}", loggingUrl); LoggingConfigurator.newConfigurator().initialiseFrom(loggingUrl); } } } BootstrapProperties();  BootstrapProperties(String resourceName);  BootstrapProperties(Properties p); Long getProperty(String key, Long defaultValue); @Deprecated synchronized Adapter createAdapter(); InputStream getConfigurationStream(); String[] getConfigurationUrls(); @SuppressWarnings("deprecation") String findAdapterResource(); boolean isPrimaryUrlAvailable(); URLString getPrimaryUrl(); synchronized AdapterConfigManager getConfigManager(); void reconfigureLogging(); boolean isEnabled(String key); static boolean isEnabled(Properties p, String key);  }