@Test public void testLevels() { SLF4JBridgeHandler.install(); String msg = "msg"; julLogger.setLevel(Level.ALL); julLogger.finest(msg); julLogger.finer(msg); julLogger.fine(msg); julLogger.info(msg); julLogger.warning(msg); julLogger.severe(msg); assertEquals(6, listAppender.list.size()); int i = 0; assertLevel(i++, org.apache.log4j.Level.TRACE); assertLevel(i++, org.apache.log4j.Level.DEBUG); assertLevel(i++, org.apache.log4j.Level.DEBUG); assertLevel(i++, org.apache.log4j.Level.INFO); assertLevel(i++, org.apache.log4j.Level.WARN); assertLevel(i++, org.apache.log4j.Level.ERROR); }
public static void install() { LogManager.getLogManager().getLogger("").addHandler(new SLF4JBridgeHandler()); }
SLF4JBridgeHandler extends Handler { public static void install() { LogManager.getLogManager().getLogger("").addHandler(new SLF4JBridgeHandler()); } }
SLF4JBridgeHandler extends Handler { public static void install() { LogManager.getLogManager().getLogger("").addHandler(new SLF4JBridgeHandler()); } SLF4JBridgeHandler(); }
SLF4JBridgeHandler extends Handler { public static void install() { LogManager.getLogManager().getLogger("").addHandler(new SLF4JBridgeHandler()); } SLF4JBridgeHandler(); static void install(); static void uninstall(); static boolean isInstalled(); static void removeHandlersForRootLogger(); void close(); void flush(); void publish(LogRecord record); }
SLF4JBridgeHandler extends Handler { public static void install() { LogManager.getLogManager().getLogger("").addHandler(new SLF4JBridgeHandler()); } SLF4JBridgeHandler(); static void install(); static void uninstall(); static boolean isInstalled(); static void removeHandlersForRootLogger(); void close(); void flush(); void publish(LogRecord record);  }