test_class.file: agent/core/src/test/java/org/glowroot/agent/jul/LoggerTest.java
test_class.identifier: LoggerTest
test_case.body: @Test
      public void testGetLevelWarning() {
          // given
          org.slf4j.Logger slf4jLogger = mock(org.slf4j.Logger.class);
          when(slf4jLogger.isWarnEnabled()).thenReturn(true);
          // when
          Logger logger = new Logger(slf4jLogger);
          // then
          assertThat(logger.getLevel()).isEqualTo(Level.WARNING);
      }
test_case.class_method_signature: LoggerTest.testGetLevelWarning()
test_case.full_signature: @Test public void testGetLevelWarning()
test_case.identifier: testGetLevelWarning
test_case.invocations: mock thenReturn when isWarnEnabled isEqualTo assertThat getLevel
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetLevelWarning()
focal_class.declarator: GLOBAL_LOGGER_NAME = "global"
focal_class.modifier: public static final
focal_class.original_string: public static final String GLOBAL_LOGGER_NAME = "global";
focal_class.type: String
focal_class.var_name: GLOBAL_LOGGER_NAME
focal_class.declarator: global = new Logger(GLOBAL_LOGGER_NAME)
focal_class.modifier: public static final
focal_class.original_string: public static final Logger global = new Logger(GLOBAL_LOGGER_NAME);
focal_class.type: Logger
focal_class.var_name: global
focal_class.declarator: slf4jLogger
focal_class.modifier: private final
focal_class.original_string: private final org.slf4j.Logger slf4jLogger;
focal_class.type: org.slf4j.Logger
focal_class.var_name: slf4jLogger
focal_class.declarator: resourceBundle
focal_class.modifier: private @Nullable
focal_class.original_string: private @Nullable ResourceBundle resourceBundle;
focal_class.type: ResourceBundle
focal_class.var_name: resourceBundle
focal_class.file: agent/core/src/main/java/org/glowroot/agent/jul/Logger.java
focal_class.identifier: Logger
focal_class.class_method_signature: Logger.getLogger(String name)
focal_class.full_signature: public static Logger getLogger(String name)
focal_class.identifier: getLogger
focal_class.modifiers: public static
focal_class.parameters: (String name)
focal_class.return: Logger
focal_class.signature: Logger getLogger(String name)
focal_class.class_method_signature: Logger.getLogger(String name,
              @SuppressWarnings("unused") String resourceBundleName)
focal_class.full_signature: public static Logger getLogger(String name,
              @SuppressWarnings("unused") String resourceBundleName)
focal_class.identifier: getLogger
focal_class.modifiers: public static
focal_class.parameters: (String name,
              @SuppressWarnings("unused") String resourceBundleName)
focal_class.return: Logger
focal_class.signature: Logger getLogger(String name,
              @SuppressWarnings("unused") String resourceBundleName)
focal_class.class_method_signature: Logger.Logger(String name)
focal_class.full_signature: private  Logger(String name)
focal_class.identifier: Logger
focal_class.modifiers: private
focal_class.parameters: (String name)
focal_class.signature:  Logger(String name)
focal_class.class_method_signature: Logger.Logger(org.slf4j.Logger logger)
focal_class.full_signature: @VisibleForTesting  Logger(org.slf4j.Logger logger)
focal_class.identifier: Logger
focal_class.modifiers: @VisibleForTesting
focal_class.parameters: (org.slf4j.Logger logger)
focal_class.signature:  Logger(org.slf4j.Logger logger)
focal_class.class_method_signature: Logger.getSlf4jLogger()
focal_class.full_signature: @VisibleForTesting org.slf4j.Logger getSlf4jLogger()
focal_class.identifier: getSlf4jLogger
focal_class.modifiers: @VisibleForTesting
focal_class.parameters: ()
focal_class.return: org.slf4j.Logger
focal_class.signature: org.slf4j.Logger getSlf4jLogger()
focal_class.class_method_signature: Logger.getName()
focal_class.full_signature: public String getName()
focal_class.identifier: getName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: Logger.severe(String msg)
focal_class.full_signature: public void severe(String msg)
focal_class.identifier: severe
focal_class.modifiers: public
focal_class.parameters: (String msg)
focal_class.return: void
focal_class.signature: void severe(String msg)
focal_class.class_method_signature: Logger.warning(String msg)
focal_class.full_signature: public void warning(String msg)
focal_class.identifier: warning
focal_class.modifiers: public
focal_class.parameters: (String msg)
focal_class.return: void
focal_class.signature: void warning(String msg)
focal_class.class_method_signature: Logger.info(String msg)
focal_class.full_signature: public void info(String msg)
focal_class.identifier: info
focal_class.modifiers: public
focal_class.parameters: (String msg)
focal_class.return: void
focal_class.signature: void info(String msg)
focal_class.class_method_signature: Logger.config(String msg)
focal_class.full_signature: public void config(String msg)
focal_class.identifier: config
focal_class.modifiers: public
focal_class.parameters: (String msg)
focal_class.return: void
focal_class.signature: void config(String msg)
focal_class.class_method_signature: Logger.fine(String msg)
focal_class.full_signature: public void fine(String msg)
focal_class.identifier: fine
focal_class.modifiers: public
focal_class.parameters: (String msg)
focal_class.return: void
focal_class.signature: void fine(String msg)
focal_class.class_method_signature: Logger.finer(String msg)
focal_class.full_signature: public void finer(String msg)
focal_class.identifier: finer
focal_class.modifiers: public
focal_class.parameters: (String msg)
focal_class.return: void
focal_class.signature: void finer(String msg)
focal_class.class_method_signature: Logger.finest(String msg)
focal_class.full_signature: public void finest(String msg)
focal_class.identifier: finest
focal_class.modifiers: public
focal_class.parameters: (String msg)
focal_class.return: void
focal_class.signature: void finest(String msg)
focal_class.class_method_signature: Logger.log(LogRecord record)
focal_class.full_signature: public void log(LogRecord record)
focal_class.identifier: log
focal_class.modifiers: public
focal_class.parameters: (LogRecord record)
focal_class.return: void
focal_class.signature: void log(LogRecord record)
focal_class.class_method_signature: Logger.log(Level level, String msg)
focal_class.full_signature: public void log(Level level, String msg)
focal_class.identifier: log
focal_class.modifiers: public
focal_class.parameters: (Level level, String msg)
focal_class.return: void
focal_class.signature: void log(Level level, String msg)
focal_class.class_method_signature: Logger.log(Level level, String msg, @Nullable Object param1)
focal_class.full_signature: public void log(Level level, String msg, @Nullable Object param1)
focal_class.identifier: log
focal_class.modifiers: public
focal_class.parameters: (Level level, String msg, @Nullable Object param1)
focal_class.return: void
focal_class.signature: void log(Level level, String msg, @Nullable Object param1)
focal_class.class_method_signature: Logger.log(Level level, String msg, @Nullable Object[] params)
focal_class.full_signature: public void log(Level level, String msg, @Nullable Object[] params)
focal_class.identifier: log
focal_class.modifiers: public
focal_class.parameters: (Level level, String msg, @Nullable Object[] params)
focal_class.return: void
focal_class.signature: void log(Level level, String msg, @Nullable Object[] params)
focal_class.class_method_signature: Logger.log(Level level, String msg, Throwable thrown)
focal_class.full_signature: public void log(Level level, String msg, Throwable thrown)
focal_class.identifier: log
focal_class.modifiers: public
focal_class.parameters: (Level level, String msg, Throwable thrown)
focal_class.return: void
focal_class.signature: void log(Level level, String msg, Throwable thrown)
focal_class.class_method_signature: Logger.isLoggable(Level level)
focal_class.full_signature: public boolean isLoggable(Level level)
focal_class.identifier: isLoggable
focal_class.modifiers: public
focal_class.parameters: (Level level)
focal_class.return: boolean
focal_class.signature: boolean isLoggable(Level level)
focal_class.class_method_signature: Logger.getLevel()
focal_class.full_signature: public Level getLevel()
focal_class.identifier: getLevel
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Level
focal_class.signature: Level getLevel()
focal_class.class_method_signature: Logger.logp(Level level, String sourceClass, String sourceMethod, String msg)
focal_class.full_signature: @SuppressWarnings("unused") public void logp(Level level, String sourceClass, String sourceMethod, String msg)
focal_class.identifier: logp
focal_class.modifiers: @SuppressWarnings("unused") public
focal_class.parameters: (Level level, String sourceClass, String sourceMethod, String msg)
focal_class.return: void
focal_class.signature: void logp(Level level, String sourceClass, String sourceMethod, String msg)
focal_class.class_method_signature: Logger.logp(Level level, String sourceClass, String sourceMethod, String msg,
              Object param1)
focal_class.full_signature: @SuppressWarnings("unused") public void logp(Level level, String sourceClass, String sourceMethod, String msg,
              Object param1)
focal_class.identifier: logp
focal_class.modifiers: @SuppressWarnings("unused") public
focal_class.parameters: (Level level, String sourceClass, String sourceMethod, String msg,
              Object param1)
focal_class.return: void
focal_class.signature: void logp(Level level, String sourceClass, String sourceMethod, String msg,
              Object param1)
focal_class.class_method_signature: Logger.logp(Level level, String sourceClass, String sourceMethod, String msg,
              Object[] params)
focal_class.full_signature: @SuppressWarnings("unused") public void logp(Level level, String sourceClass, String sourceMethod, String msg,
              Object[] params)
focal_class.identifier: logp
focal_class.modifiers: @SuppressWarnings("unused") public
focal_class.parameters: (Level level, String sourceClass, String sourceMethod, String msg,
              Object[] params)
focal_class.return: void
focal_class.signature: void logp(Level level, String sourceClass, String sourceMethod, String msg,
              Object[] params)
focal_class.class_method_signature: Logger.logp(Level level, String sourceClass, String sourceMethod, String msg,
              Throwable thrown)
focal_class.full_signature: @SuppressWarnings("unused") public void logp(Level level, String sourceClass, String sourceMethod, String msg,
              Throwable thrown)
focal_class.identifier: logp
focal_class.modifiers: @SuppressWarnings("unused") public
focal_class.parameters: (Level level, String sourceClass, String sourceMethod, String msg,
              Throwable thrown)
focal_class.return: void
focal_class.signature: void logp(Level level, String sourceClass, String sourceMethod, String msg,
              Throwable thrown)
focal_class.class_method_signature: Logger.logrb(Level level, String sourceClass, String sourceMethod, String bundleName,
              String msg)
focal_class.full_signature: @SuppressWarnings("unused") public void logrb(Level level, String sourceClass, String sourceMethod, String bundleName,
              String msg)
focal_class.identifier: logrb
focal_class.modifiers: @SuppressWarnings("unused") public
focal_class.parameters: (Level level, String sourceClass, String sourceMethod, String bundleName,
              String msg)
focal_class.return: void
focal_class.signature: void logrb(Level level, String sourceClass, String sourceMethod, String bundleName,
              String msg)
focal_class.class_method_signature: Logger.logrb(Level level, String sourceClass, String sourceMethod, String bundleName,
              String msg, Object param1)
focal_class.full_signature: @SuppressWarnings("unused") public void logrb(Level level, String sourceClass, String sourceMethod, String bundleName,
              String msg, Object param1)
focal_class.identifier: logrb
focal_class.modifiers: @SuppressWarnings("unused") public
focal_class.parameters: (Level level, String sourceClass, String sourceMethod, String bundleName,
              String msg, Object param1)
focal_class.return: void
focal_class.signature: void logrb(Level level, String sourceClass, String sourceMethod, String bundleName,
              String msg, Object param1)
focal_class.class_method_signature: Logger.logrb(Level level, String sourceClass, String sourceMethod, String bundleName,
              String msg, Object[] params)
focal_class.full_signature: @SuppressWarnings("unused") public void logrb(Level level, String sourceClass, String sourceMethod, String bundleName,
              String msg, Object[] params)
focal_class.identifier: logrb
focal_class.modifiers: @SuppressWarnings("unused") public
focal_class.parameters: (Level level, String sourceClass, String sourceMethod, String bundleName,
              String msg, Object[] params)
focal_class.return: void
focal_class.signature: void logrb(Level level, String sourceClass, String sourceMethod, String bundleName,
              String msg, Object[] params)
focal_class.class_method_signature: Logger.logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle,
              String msg, Object... params)
focal_class.full_signature: @SuppressWarnings("unused") public void logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle,
              String msg, Object... params)
focal_class.identifier: logrb
focal_class.modifiers: @SuppressWarnings("unused") public
focal_class.parameters: (Level level, String sourceClass, String sourceMethod, ResourceBundle bundle,
              String msg, Object... params)
focal_class.return: void
focal_class.signature: void logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle,
              String msg, Object... params)
focal_class.class_method_signature: Logger.logrb(Level level, ResourceBundle bundle, String msg, Object... params)
focal_class.full_signature: @SuppressWarnings("unused") public void logrb(Level level, ResourceBundle bundle, String msg, Object... params)
focal_class.identifier: logrb
focal_class.modifiers: @SuppressWarnings("unused") public
focal_class.parameters: (Level level, ResourceBundle bundle, String msg, Object... params)
focal_class.return: void
focal_class.signature: void logrb(Level level, ResourceBundle bundle, String msg, Object... params)
focal_class.class_method_signature: Logger.logrb(Level level, String sourceClass, String sourceMethod, String bundleName,
              String msg, Throwable thrown)
focal_class.full_signature: @SuppressWarnings("unused") public void logrb(Level level, String sourceClass, String sourceMethod, String bundleName,
              String msg, Throwable thrown)
focal_class.identifier: logrb
focal_class.modifiers: @SuppressWarnings("unused") public
focal_class.parameters: (Level level, String sourceClass, String sourceMethod, String bundleName,
              String msg, Throwable thrown)
focal_class.return: void
focal_class.signature: void logrb(Level level, String sourceClass, String sourceMethod, String bundleName,
              String msg, Throwable thrown)
focal_class.class_method_signature: Logger.logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle,
              String msg, Throwable thrown)
focal_class.full_signature: @SuppressWarnings("unused") public void logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle,
              String msg, Throwable thrown)
focal_class.identifier: logrb
focal_class.modifiers: @SuppressWarnings("unused") public
focal_class.parameters: (Level level, String sourceClass, String sourceMethod, ResourceBundle bundle,
              String msg, Throwable thrown)
focal_class.return: void
focal_class.signature: void logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle,
              String msg, Throwable thrown)
focal_class.class_method_signature: Logger.logrb(Level level, ResourceBundle bundle, String msg, Throwable thrown)
focal_class.full_signature: @SuppressWarnings("unused") public void logrb(Level level, ResourceBundle bundle, String msg, Throwable thrown)
focal_class.identifier: logrb
focal_class.modifiers: @SuppressWarnings("unused") public
focal_class.parameters: (Level level, ResourceBundle bundle, String msg, Throwable thrown)
focal_class.return: void
focal_class.signature: void logrb(Level level, ResourceBundle bundle, String msg, Throwable thrown)
focal_class.class_method_signature: Logger.entering(String sourceClass, String sourceMethod)
focal_class.full_signature: @SuppressWarnings("unused") public void entering(String sourceClass, String sourceMethod)
focal_class.identifier: entering
focal_class.modifiers: @SuppressWarnings("unused") public
focal_class.parameters: (String sourceClass, String sourceMethod)
focal_class.return: void
focal_class.signature: void entering(String sourceClass, String sourceMethod)
focal_class.class_method_signature: Logger.entering(String sourceClass, String sourceMethod, Object param1)
focal_class.full_signature: @SuppressWarnings("unused") public void entering(String sourceClass, String sourceMethod, Object param1)
focal_class.identifier: entering
focal_class.modifiers: @SuppressWarnings("unused") public
focal_class.parameters: (String sourceClass, String sourceMethod, Object param1)
focal_class.return: void
focal_class.signature: void entering(String sourceClass, String sourceMethod, Object param1)
focal_class.class_method_signature: Logger.entering(String sourceClass, String sourceMethod, Object[] params)
focal_class.full_signature: @SuppressWarnings("unused") public void entering(String sourceClass, String sourceMethod, Object[] params)
focal_class.identifier: entering
focal_class.modifiers: @SuppressWarnings("unused") public
focal_class.parameters: (String sourceClass, String sourceMethod, Object[] params)
focal_class.return: void
focal_class.signature: void entering(String sourceClass, String sourceMethod, Object[] params)
focal_class.class_method_signature: Logger.exiting(String sourceClass, String sourceMethod)
focal_class.full_signature: @SuppressWarnings("unused") public void exiting(String sourceClass, String sourceMethod)
focal_class.identifier: exiting
focal_class.modifiers: @SuppressWarnings("unused") public
focal_class.parameters: (String sourceClass, String sourceMethod)
focal_class.return: void
focal_class.signature: void exiting(String sourceClass, String sourceMethod)
focal_class.class_method_signature: Logger.exiting(String sourceClass, String sourceMethod, Object result)
focal_class.full_signature: @SuppressWarnings("unused") public void exiting(String sourceClass, String sourceMethod, Object result)
focal_class.identifier: exiting
focal_class.modifiers: @SuppressWarnings("unused") public
focal_class.parameters: (String sourceClass, String sourceMethod, Object result)
focal_class.return: void
focal_class.signature: void exiting(String sourceClass, String sourceMethod, Object result)
focal_class.class_method_signature: Logger.throwing(String sourceClass, String sourceMethod, Throwable thrown)
focal_class.full_signature: @SuppressWarnings("unused") public void throwing(String sourceClass, String sourceMethod, Throwable thrown)
focal_class.identifier: throwing
focal_class.modifiers: @SuppressWarnings("unused") public
focal_class.parameters: (String sourceClass, String sourceMethod, Throwable thrown)
focal_class.return: void
focal_class.signature: void throwing(String sourceClass, String sourceMethod, Throwable thrown)
focal_class.class_method_signature: Logger.getResourceBundle()
focal_class.full_signature: public @Nullable ResourceBundle getResourceBundle()
focal_class.identifier: getResourceBundle
focal_class.modifiers: public @Nullable
focal_class.parameters: ()
focal_class.return: ResourceBundle
focal_class.signature: ResourceBundle getResourceBundle()
focal_class.class_method_signature: Logger.setResourceBundle(ResourceBundle resourceBundle)
focal_class.full_signature: public void setResourceBundle(ResourceBundle resourceBundle)
focal_class.identifier: setResourceBundle
focal_class.modifiers: public
focal_class.parameters: (ResourceBundle resourceBundle)
focal_class.return: void
focal_class.signature: void setResourceBundle(ResourceBundle resourceBundle)
focal_class.class_method_signature: Logger.getResourceBundleName()
focal_class.full_signature: public @Nullable String getResourceBundleName()
focal_class.identifier: getResourceBundleName
focal_class.modifiers: public @Nullable
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getResourceBundleName()
focal_class.class_method_signature: Logger.getParent()
focal_class.full_signature: public Logger getParent()
focal_class.identifier: getParent
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Logger
focal_class.signature: Logger getParent()
focal_class.class_method_signature: Logger.setParent(@SuppressWarnings("unused") Logger parent)
focal_class.full_signature: public void setParent(@SuppressWarnings("unused") Logger parent)
focal_class.identifier: setParent
focal_class.modifiers: public
focal_class.parameters: (@SuppressWarnings("unused") Logger parent)
focal_class.return: void
focal_class.signature: void setParent(@SuppressWarnings("unused") Logger parent)
focal_class.class_method_signature: Logger.setLevel(@SuppressWarnings("unused") Level newLevel)
focal_class.full_signature: public void setLevel(@SuppressWarnings("unused") Level newLevel)
focal_class.identifier: setLevel
focal_class.modifiers: public
focal_class.parameters: (@SuppressWarnings("unused") Level newLevel)
focal_class.return: void
focal_class.signature: void setLevel(@SuppressWarnings("unused") Level newLevel)
focal_class.class_method_signature: Logger.getAnonymousLogger()
focal_class.full_signature: public static Logger getAnonymousLogger()
focal_class.identifier: getAnonymousLogger
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Logger
focal_class.signature: Logger getAnonymousLogger()
focal_class.class_method_signature: Logger.getAnonymousLogger(@SuppressWarnings("unused") String resourceBundleName)
focal_class.full_signature: public static Logger getAnonymousLogger(@SuppressWarnings("unused") String resourceBundleName)
focal_class.identifier: getAnonymousLogger
focal_class.modifiers: public static
focal_class.parameters: (@SuppressWarnings("unused") String resourceBundleName)
focal_class.return: Logger
focal_class.signature: Logger getAnonymousLogger(@SuppressWarnings("unused") String resourceBundleName)
focal_class.class_method_signature: Logger.getGlobal()
focal_class.full_signature: public static final Logger getGlobal()
focal_class.identifier: getGlobal
focal_class.modifiers: public static final
focal_class.parameters: ()
focal_class.return: Logger
focal_class.signature: Logger getGlobal()
focal_class.class_method_signature: Logger.getMessage(LogRecord record)
focal_class.full_signature: private static @Nullable String getMessage(LogRecord record)
focal_class.identifier: getMessage
focal_class.modifiers: private static @Nullable
focal_class.parameters: (LogRecord record)
focal_class.return: String
focal_class.signature: String getMessage(LogRecord record)
focal_method.body: public Level getLevel() {
          if (slf4jLogger.isErrorEnabled()) {
              return Level.SEVERE;
          } else if (slf4jLogger.isWarnEnabled()) {
              return Level.WARNING;
          } else if (slf4jLogger.isInfoEnabled()) {
              return Level.CONFIG;
          } else if (slf4jLogger.isDebugEnabled()) {
              return Level.FINE;
          } else if (slf4jLogger.isTraceEnabled()) {
              return Level.FINEST;
          } else {
              return Level.OFF;
          }
      }
focal_method.class_method_signature: Logger.getLevel()
focal_method.full_signature: public Level getLevel()
focal_method.identifier: getLevel
focal_method.invocations: isErrorEnabled isWarnEnabled isInfoEnabled isDebugEnabled isTraceEnabled
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Level
focal_method.signature: Level getLevel()