test_class.file: dubbo-common/src/test/java/org/apache/dubbo/common/logger/support/FailsafeLoggerTest.java
test_class.identifier: FailsafeLoggerTest
test_case.body: @Test
      public void testGetLogger() {
          Assertions.assertThrows(RuntimeException.class, () -> {
              Logger failLogger = mock(Logger.class);
              FailsafeLogger failsafeLogger = new FailsafeLogger(failLogger);
  
              doThrow(new RuntimeException()).when(failLogger).error(anyString());
              failsafeLogger.getLogger().error("should get error");
          });
      }
test_case.class_method_signature: FailsafeLoggerTest.testGetLogger()
test_case.full_signature: @Test public void testGetLogger()
test_case.identifier: testGetLogger
test_case.invocations: assertThrows mock error when doThrow anyString error getLogger
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetLogger()
focal_class.declarator: logger
focal_class.modifier: private
focal_class.original_string: private Logger logger;
focal_class.type: Logger
focal_class.var_name: logger
focal_class.file: dubbo-common/src/main/java/org/apache/dubbo/common/logger/support/FailsafeLogger.java
focal_class.identifier: FailsafeLogger
focal_class.interfaces: implements Logger
focal_class.class_method_signature: FailsafeLogger.FailsafeLogger(Logger logger)
focal_class.full_signature: public  FailsafeLogger(Logger logger)
focal_class.identifier: FailsafeLogger
focal_class.modifiers: public
focal_class.parameters: (Logger logger)
focal_class.signature:  FailsafeLogger(Logger logger)
focal_class.class_method_signature: FailsafeLogger.getLogger()
focal_class.full_signature: public Logger getLogger()
focal_class.identifier: getLogger
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Logger
focal_class.signature: Logger getLogger()
focal_class.class_method_signature: FailsafeLogger.setLogger(Logger logger)
focal_class.full_signature: public void setLogger(Logger logger)
focal_class.identifier: setLogger
focal_class.modifiers: public
focal_class.parameters: (Logger logger)
focal_class.return: void
focal_class.signature: void setLogger(Logger logger)
focal_class.class_method_signature: FailsafeLogger.appendContextMessage(String msg)
focal_class.full_signature: private String appendContextMessage(String msg)
focal_class.identifier: appendContextMessage
focal_class.modifiers: private
focal_class.parameters: (String msg)
focal_class.return: String
focal_class.signature: String appendContextMessage(String msg)
focal_class.class_method_signature: FailsafeLogger.trace(String msg, Throwable e)
focal_class.full_signature: @Override public void trace(String msg, Throwable e)
focal_class.identifier: trace
focal_class.modifiers: @Override public
focal_class.parameters: (String msg, Throwable e)
focal_class.return: void
focal_class.signature: void trace(String msg, Throwable e)
focal_class.class_method_signature: FailsafeLogger.trace(Throwable e)
focal_class.full_signature: @Override public void trace(Throwable e)
focal_class.identifier: trace
focal_class.modifiers: @Override public
focal_class.parameters: (Throwable e)
focal_class.return: void
focal_class.signature: void trace(Throwable e)
focal_class.class_method_signature: FailsafeLogger.trace(String msg)
focal_class.full_signature: @Override public void trace(String msg)
focal_class.identifier: trace
focal_class.modifiers: @Override public
focal_class.parameters: (String msg)
focal_class.return: void
focal_class.signature: void trace(String msg)
focal_class.class_method_signature: FailsafeLogger.debug(String msg, Throwable e)
focal_class.full_signature: @Override public void debug(String msg, Throwable e)
focal_class.identifier: debug
focal_class.modifiers: @Override public
focal_class.parameters: (String msg, Throwable e)
focal_class.return: void
focal_class.signature: void debug(String msg, Throwable e)
focal_class.class_method_signature: FailsafeLogger.debug(Throwable e)
focal_class.full_signature: @Override public void debug(Throwable e)
focal_class.identifier: debug
focal_class.modifiers: @Override public
focal_class.parameters: (Throwable e)
focal_class.return: void
focal_class.signature: void debug(Throwable e)
focal_class.class_method_signature: FailsafeLogger.debug(String msg)
focal_class.full_signature: @Override public void debug(String msg)
focal_class.identifier: debug
focal_class.modifiers: @Override public
focal_class.parameters: (String msg)
focal_class.return: void
focal_class.signature: void debug(String msg)
focal_class.class_method_signature: FailsafeLogger.info(String msg, Throwable e)
focal_class.full_signature: @Override public void info(String msg, Throwable e)
focal_class.identifier: info
focal_class.modifiers: @Override public
focal_class.parameters: (String msg, Throwable e)
focal_class.return: void
focal_class.signature: void info(String msg, Throwable e)
focal_class.class_method_signature: FailsafeLogger.info(String msg)
focal_class.full_signature: @Override public void info(String msg)
focal_class.identifier: info
focal_class.modifiers: @Override public
focal_class.parameters: (String msg)
focal_class.return: void
focal_class.signature: void info(String msg)
focal_class.class_method_signature: FailsafeLogger.warn(String msg, Throwable e)
focal_class.full_signature: @Override public void warn(String msg, Throwable e)
focal_class.identifier: warn
focal_class.modifiers: @Override public
focal_class.parameters: (String msg, Throwable e)
focal_class.return: void
focal_class.signature: void warn(String msg, Throwable e)
focal_class.class_method_signature: FailsafeLogger.warn(String msg)
focal_class.full_signature: @Override public void warn(String msg)
focal_class.identifier: warn
focal_class.modifiers: @Override public
focal_class.parameters: (String msg)
focal_class.return: void
focal_class.signature: void warn(String msg)
focal_class.class_method_signature: FailsafeLogger.error(String msg, Throwable e)
focal_class.full_signature: @Override public void error(String msg, Throwable e)
focal_class.identifier: error
focal_class.modifiers: @Override public
focal_class.parameters: (String msg, Throwable e)
focal_class.return: void
focal_class.signature: void error(String msg, Throwable e)
focal_class.class_method_signature: FailsafeLogger.error(String msg)
focal_class.full_signature: @Override public void error(String msg)
focal_class.identifier: error
focal_class.modifiers: @Override public
focal_class.parameters: (String msg)
focal_class.return: void
focal_class.signature: void error(String msg)
focal_class.class_method_signature: FailsafeLogger.error(Throwable e)
focal_class.full_signature: @Override public void error(Throwable e)
focal_class.identifier: error
focal_class.modifiers: @Override public
focal_class.parameters: (Throwable e)
focal_class.return: void
focal_class.signature: void error(Throwable e)
focal_class.class_method_signature: FailsafeLogger.info(Throwable e)
focal_class.full_signature: @Override public void info(Throwable e)
focal_class.identifier: info
focal_class.modifiers: @Override public
focal_class.parameters: (Throwable e)
focal_class.return: void
focal_class.signature: void info(Throwable e)
focal_class.class_method_signature: FailsafeLogger.warn(Throwable e)
focal_class.full_signature: @Override public void warn(Throwable e)
focal_class.identifier: warn
focal_class.modifiers: @Override public
focal_class.parameters: (Throwable e)
focal_class.return: void
focal_class.signature: void warn(Throwable e)
focal_class.class_method_signature: FailsafeLogger.isTraceEnabled()
focal_class.full_signature: @Override public boolean isTraceEnabled()
focal_class.identifier: isTraceEnabled
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isTraceEnabled()
focal_class.class_method_signature: FailsafeLogger.isDebugEnabled()
focal_class.full_signature: @Override public boolean isDebugEnabled()
focal_class.identifier: isDebugEnabled
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isDebugEnabled()
focal_class.class_method_signature: FailsafeLogger.isInfoEnabled()
focal_class.full_signature: @Override public boolean isInfoEnabled()
focal_class.identifier: isInfoEnabled
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isInfoEnabled()
focal_class.class_method_signature: FailsafeLogger.isWarnEnabled()
focal_class.full_signature: @Override public boolean isWarnEnabled()
focal_class.identifier: isWarnEnabled
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isWarnEnabled()
focal_class.class_method_signature: FailsafeLogger.isErrorEnabled()
focal_class.full_signature: @Override public boolean isErrorEnabled()
focal_class.identifier: isErrorEnabled
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isErrorEnabled()
focal_method.body: public Logger getLogger() {
          return logger;
      }
focal_method.class_method_signature: FailsafeLogger.getLogger()
focal_method.full_signature: public Logger getLogger()
focal_method.identifier: getLogger
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Logger
focal_method.signature: Logger getLogger()