@Test public void testUnsuccessfulLoggingConfiguration() { LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory(); JoranConfigurator configurator = new JoranConfigurator(); expectedException.expect(RuntimeException.class); expectedException.expectMessage(containsString("Error while loading log configuration:")); String logConfiguration = "blahblahblah"; daemon.configureLogging(logConfiguration, loggerContext, configurator); }
void configureLogging(final String logConfiguration) { if (StringUtils.isNotEmpty(logConfiguration)) { LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory(); JoranConfigurator configurator = new JoranConfigurator(); configureLogging(logConfiguration, loggerContext, configurator); } }
MultiLangDaemon { void configureLogging(final String logConfiguration) { if (StringUtils.isNotEmpty(logConfiguration)) { LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory(); JoranConfigurator configurator = new JoranConfigurator(); configureLogging(logConfiguration, loggerContext, configurator); } } }
MultiLangDaemon { void configureLogging(final String logConfiguration) { if (StringUtils.isNotEmpty(logConfiguration)) { LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory(); JoranConfigurator configurator = new JoranConfigurator(); configureLogging(logConfiguration, loggerContext, configurator); } }  }
MultiLangDaemon { void configureLogging(final String logConfiguration) { if (StringUtils.isNotEmpty(logConfiguration)) { LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory(); JoranConfigurator configurator = new JoranConfigurator(); configureLogging(logConfiguration, loggerContext, configurator); } }  static void main(final String[] args); }
MultiLangDaemon { void configureLogging(final String logConfiguration) { if (StringUtils.isNotEmpty(logConfiguration)) { LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory(); JoranConfigurator configurator = new JoranConfigurator(); configureLogging(logConfiguration, loggerContext, configurator); } }  static void main(final String[] args);  }