@Test public void illFormattedInputShouldBeReturnedAsIs() { SLF4JBridgeHandler.install(); String msg = "foo {18=bad} {0}"; julLogger.log(Level.INFO, msg, "ignored parameter due to IllegalArgumentException"); assertEquals(1, listAppender.list.size()); LoggingEvent le = (LoggingEvent) listAppender.list.get(0); assertEquals(msg, le.getMessage()); }
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);  }