Logger { public static void info(String message, Object... args) { if (recordCaller) { LoggerFactory.getLogger(getCallerClassName()).info(message, args); } else { slf4j.info(message, args); } } protected  Logger(); static boolean isDebugEnabled(); static void debug(String message, Object... args); static void debug(Throwable e, String message, Object... args); static void info(String message, Object... args); static void info(Throwable e, String message, Object... args); static void warn(String message, Object... args); static void warn(Throwable e, String message, Object... args); static boolean isErrorEnabled(); static void error(String message, Object... args); static void error(Throwable e, String message, Object... args); static boolean isWarnEnabled();  }
@Test public void testInfo() throws Exception { for (int i = 0; i < 1000; i++) { Logger.info("test index os ... {}", i); } }