@Test public void getLoggerLevel_LBCLASSIC_78() { String objectNameAsStr = "ch.qos" + diff + ":Name=" + lc.getName() + ",Type=" + this.getClass().getName(); ObjectName on = MBeanUtil.string2ObjectName(lc, this, objectNameAsStr); JMXConfigurator configurator = new JMXConfigurator(lc, mbs, on); assertEquals("", configurator.getLoggerLevel(testLogger.getName())); MBeanUtil.unregister(lc, mbs, on, this); }
public String getLoggerLevel(String loggerName) { if (loggerName == null) { return EMPTY; } loggerName = loggerName.trim(); LoggerContext lc = (LoggerContext) context; Logger logger = lc.exists(loggerName); if (logger != null && logger.getLevel() != null) { return logger.getLevel().toString(); } else { return EMPTY; } }
JMXConfigurator extends ContextAwareBase implements JMXConfiguratorMBean, LoggerContextListener { public String getLoggerLevel(String loggerName) { if (loggerName == null) { return EMPTY; } loggerName = loggerName.trim(); LoggerContext lc = (LoggerContext) context; Logger logger = lc.exists(loggerName); if (logger != null && logger.getLevel() != null) { return logger.getLevel().toString(); } else { return EMPTY; } } }
JMXConfigurator extends ContextAwareBase implements JMXConfiguratorMBean, LoggerContextListener { public String getLoggerLevel(String loggerName) { if (loggerName == null) { return EMPTY; } loggerName = loggerName.trim(); LoggerContext lc = (LoggerContext) context; Logger logger = lc.exists(loggerName); if (logger != null && logger.getLevel() != null) { return logger.getLevel().toString(); } else { return EMPTY; } } JMXConfigurator(LoggerContext loggerContext, MBeanServer mbs, ObjectName objectName); }
JMXConfigurator extends ContextAwareBase implements JMXConfiguratorMBean, LoggerContextListener { public String getLoggerLevel(String loggerName) { if (loggerName == null) { return EMPTY; } loggerName = loggerName.trim(); LoggerContext lc = (LoggerContext) context; Logger logger = lc.exists(loggerName); if (logger != null && logger.getLevel() != null) { return logger.getLevel().toString(); } else { return EMPTY; } } JMXConfigurator(LoggerContext loggerContext, MBeanServer mbs, ObjectName objectName); void reloadDefaultConfiguration(); void reloadByFileName(String fileName); void reloadByURL(URL url); void setLoggerLevel(String loggerName, String levelStr); String getLoggerLevel(String loggerName); String getLoggerEffectiveLevel(String loggerName); List<String> getLoggerList(); List<String> getStatuses(); void onStop(LoggerContext context); void onLevelChange(Logger logger, Level level); void onReset(LoggerContext context); boolean isResetResistant(); void onStart(LoggerContext context); @Override String toString(); }
JMXConfigurator extends ContextAwareBase implements JMXConfiguratorMBean, LoggerContextListener { public String getLoggerLevel(String loggerName) { if (loggerName == null) { return EMPTY; } loggerName = loggerName.trim(); LoggerContext lc = (LoggerContext) context; Logger logger = lc.exists(loggerName); if (logger != null && logger.getLevel() != null) { return logger.getLevel().toString(); } else { return EMPTY; } } JMXConfigurator(LoggerContext loggerContext, MBeanServer mbs, ObjectName objectName); void reloadDefaultConfiguration(); void reloadByFileName(String fileName); void reloadByURL(URL url); void setLoggerLevel(String loggerName, String levelStr); String getLoggerLevel(String loggerName); String getLoggerEffectiveLevel(String loggerName); List<String> getLoggerList(); List<String> getStatuses(); void onStop(LoggerContext context); void onLevelChange(Logger logger, Level level); void onReset(LoggerContext context); boolean isResetResistant(); void onStart(LoggerContext context); @Override String toString();  }