@Test public void report() { Report.info("1"); Report.warn("2"); Report.error("3"); }
@Override public void report(Level level, String message) { if (level == Level.ERROR) { if (LOG.isErrorEnabled()) { LOG.error(message, new Exception("error")); } } else if (level == Level.WARN) { if (LOG.isWarnEnabled()) { LOG.warn(message, new Exception("warn")); } } else if (level == Level.INFO) { LOG.info(message); } else { LOG.fatal(MessageFormat.format("Unknown level \"{0}\": {1}", level, message)); } }
CommonsLoggingReport extends Report.Delegate { @Override public void report(Level level, String message) { if (level == Level.ERROR) { if (LOG.isErrorEnabled()) { LOG.error(message, new Exception("error")); } } else if (level == Level.WARN) { if (LOG.isWarnEnabled()) { LOG.warn(message, new Exception("warn")); } } else if (level == Level.INFO) { LOG.info(message); } else { LOG.fatal(MessageFormat.format("Unknown level \"{0}\": {1}", level, message)); } } }
CommonsLoggingReport extends Report.Delegate { @Override public void report(Level level, String message) { if (level == Level.ERROR) { if (LOG.isErrorEnabled()) { LOG.error(message, new Exception("error")); } } else if (level == Level.WARN) { if (LOG.isWarnEnabled()) { LOG.warn(message, new Exception("warn")); } } else if (level == Level.INFO) { LOG.info(message); } else { LOG.fatal(MessageFormat.format("Unknown level \"{0}\": {1}", level, message)); } }  }
CommonsLoggingReport extends Report.Delegate { @Override public void report(Level level, String message) { if (level == Level.ERROR) { if (LOG.isErrorEnabled()) { LOG.error(message, new Exception("error")); } } else if (level == Level.WARN) { if (LOG.isWarnEnabled()) { LOG.warn(message, new Exception("warn")); } } else if (level == Level.INFO) { LOG.info(message); } else { LOG.fatal(MessageFormat.format("Unknown level \"{0}\": {1}", level, message)); } }  @Override void report(Level level, String message); @Override void report(Level level, String message, Throwable throwable); }
CommonsLoggingReport extends Report.Delegate { @Override public void report(Level level, String message) { if (level == Level.ERROR) { if (LOG.isErrorEnabled()) { LOG.error(message, new Exception("error")); } } else if (level == Level.WARN) { if (LOG.isWarnEnabled()) { LOG.warn(message, new Exception("warn")); } } else if (level == Level.INFO) { LOG.info(message); } else { LOG.fatal(MessageFormat.format("Unknown level \"{0}\": {1}", level, message)); } }  @Override void report(Level level, String message); @Override void report(Level level, String message, Throwable throwable);  }