@Test public void testWarnWithException() { Log mock = createStrictMock(Log.class); mock.warn("a", e); replay(mock); InternalLogger logger = new CommonsLogger(mock, "foo"); logger.warn("a", e); verify(mock); }
@Override public void warn(String msg) { logger.warn(msg); }
CommonsLogger extends AbstractInternalLogger { @Override public void warn(String msg) { logger.warn(msg); } }
CommonsLogger extends AbstractInternalLogger { @Override public void warn(String msg) { logger.warn(msg); } CommonsLogger(Log logger, String name); }
CommonsLogger extends AbstractInternalLogger { @Override public void warn(String msg) { logger.warn(msg); } CommonsLogger(Log logger, String name); @Override boolean isTraceEnabled(); @Override void trace(String msg); @Override void trace(String format, Object arg); @Override void trace(String format, Object argA, Object argB); @Override void trace(String format, Object... arguments); @Override void trace(String msg, Throwable t); @Override boolean isDebugEnabled(); @Override void debug(String msg); @Override void debug(String format, Object arg); @Override void debug(String format, Object argA, Object argB); @Override void debug(String format, Object... arguments); @Override void debug(String msg, Throwable t); @Override boolean isInfoEnabled(); @Override void info(String msg); @Override void info(String format, Object arg); @Override void info(String format, Object argA, Object argB); @Override void info(String format, Object... arguments); @Override void info(String msg, Throwable t); @Override boolean isWarnEnabled(); @Override void warn(String msg); @Override void warn(String format, Object arg); @Override void warn(String format, Object argA, Object argB); @Override void warn(String format, Object... arguments); @Override void warn(String msg, Throwable t); @Override boolean isErrorEnabled(); @Override void error(String msg); @Override void error(String format, Object arg); @Override void error(String format, Object argA, Object argB); @Override void error(String format, Object... arguments); @Override void error(String msg, Throwable t); }
CommonsLogger extends AbstractInternalLogger { @Override public void warn(String msg) { logger.warn(msg); } CommonsLogger(Log logger, String name); @Override boolean isTraceEnabled(); @Override void trace(String msg); @Override void trace(String format, Object arg); @Override void trace(String format, Object argA, Object argB); @Override void trace(String format, Object... arguments); @Override void trace(String msg, Throwable t); @Override boolean isDebugEnabled(); @Override void debug(String msg); @Override void debug(String format, Object arg); @Override void debug(String format, Object argA, Object argB); @Override void debug(String format, Object... arguments); @Override void debug(String msg, Throwable t); @Override boolean isInfoEnabled(); @Override void info(String msg); @Override void info(String format, Object arg); @Override void info(String format, Object argA, Object argB); @Override void info(String format, Object... arguments); @Override void info(String msg, Throwable t); @Override boolean isWarnEnabled(); @Override void warn(String msg); @Override void warn(String format, Object arg); @Override void warn(String format, Object argA, Object argB); @Override void warn(String format, Object... arguments); @Override void warn(String msg, Throwable t); @Override boolean isErrorEnabled(); @Override void error(String msg); @Override void error(String format, Object arg); @Override void error(String format, Object argA, Object argB); @Override void error(String format, Object... arguments); @Override void error(String msg, Throwable t);  }