public void error(String msg, Throwable ex, String... args) { log.error(LoggerUtils.format(msg, args), ex); }
public void warn(String msg, String... args) { log.warn(LoggerUtils.format(msg, args)); }
public void trace(String msg, Object... args) { log.trace(LoggerUtils.format(msg, args)); }
public void fatal(String msg, Throwable ex, String... args) { log.fatal(LoggerUtils.format(msg, args), ex); }
public void info(String msg, Throwable ex, String... args) { log.log(Level.INFO, LoggerUtils.format(msg, args), ex); }
public void debug(String msg, Throwable ex, String... args) { log.log(Level.FINE, LoggerUtils.format(msg, args), ex); }
public void warn(String msg, Object... args) { log.warn(LoggerUtils.format(msg, args)); }
public void error(String msg, String... args) { log.error(LoggerUtils.format(msg, args)); }
public void info(String msg, Throwable ex, String... args) { log.info(LoggerUtils.format(msg, args), ex); }
public void debug(String msg, Throwable ex, String... args) { log.debug(LoggerUtils.format(msg, args), ex); }
public void error(String msg, String... args) { log.log(Level.SEVERE, LoggerUtils.format(msg, args)); }
public void error(String msg, Object... args) { log.log(Level.SEVERE, LoggerUtils.format(msg, args)); }
public void trace(String msg, String... args) { log.log(Level.FINEST, LoggerUtils.format(msg, args)); }
public void error(String msg, Throwable ex, String... args) { log.error(LoggerUtils.format(msg, args), ex); }
public void info(String msg, Throwable ex, String... args) { log.info(LoggerUtils.format(msg, args), ex); }
public void fatal(String msg, Throwable ex, String... args) { log.error(LoggerUtils.format(msg, args), ex); }
public void warn(String msg, String... args) { log.warn(LoggerUtils.format(msg, args)); }
public void debug(String msg, Object... args) { log.debug(LoggerUtils.format(msg, args)); }
public static String format(String msg, Object[] args) { List<String> strArgs = new LinkedList<String>(); for (Object arg : args) { strArgs.add(arg != null ? arg.toString() : "(null)"); } return format(msg, strArgs.toArray(new String[strArgs.size()])); }
public void fatal(String msg, String... args) { log.fatal(LoggerUtils.format(msg, args)); }