@Test public void testSuccessfulLoggingConfiguration() { LoggerContext loggerContext = spy((LoggerContext) LoggerFactory.getILoggerFactory()); JoranConfigurator configurator = spy(new JoranConfigurator()); String logConfiguration = this.getClass().getClassLoader().getResource("logback.xml").getPath(); daemon.configureLogging(logConfiguration, loggerContext, configurator); verify(loggerContext).reset(); verify(configurator).setContext(eq(loggerContext)); }
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);  }