LogConfig { public void setLogLevel(String level) { Level l = Level.toLevel(level); LoggerContext ctx = (LoggerContext) LogManager.getContext(false); Configuration config = ctx.getConfiguration(); Collection<LoggerConfig> loggerConfigs = config.getLoggers().values(); for ( LoggerConfig loggerConfig : loggerConfigs ) { loggerConfig.setLevel(l); } LOG.debug("Log level changed to " + l); LOG.info("Log level changed to " + l); }  void setLogLevel(String level);  }
@Test public void testSetLogLevel_1() throws Exception { LogConfig fixture = new LogConfig(); String level = ""; fixture.setLogLevel(level); }
@Test public void testSetLogLevel_2() throws Exception { LogConfig fixture = new LogConfig(); String level = ""; fixture.setLogLevel(level); }