/** * Log a message at level INFO according to the specified format and argument. * * <p> * This form avoids superfluous object creation when the logger is disabled * for the INFO level. * </p> * * @param format * the format string * @param arg * the argument */ @Override public void info(String format, Object arg) { if (logger.isInfoEnabled()) { FormattingTuple ft = MessageFormatter.format(format, arg); logger.log(FQCN, Level.INFO, ft.getMessage(), ft.getThrowable()); } }
/** * Delegates to the {@link Log#trace(Object)} method of the underlying * {@link Log} instance. * * <p> * However, this form avoids superfluous object creation when the logger is disabled * for level TRACE. * </p> * * @param format * the format string * @param arg * the argument */ @Override public void trace(String format, Object arg) { if (logger.isTraceEnabled()) { FormattingTuple ft = MessageFormatter.format(format, arg); logger.trace(ft.getMessage(), ft.getThrowable()); } }
/** * Log a message at level DEBUG according to the specified format and * argument. * * <p> * This form avoids superfluous object creation when the logger is disabled * for level DEBUG. * </p> * * @param format * the format string * @param arg * the argument */ @Override public void debug(String format, Object arg) { if (logger.isDebugEnabled()) { FormattingTuple ft = MessageFormatter.format(format, arg); logger.log(FQCN, Level.DEBUG, ft.getMessage(), ft.getThrowable()); } }
/** * Delegates to the {@link Log#error(Object)} method of the underlying * {@link Log} instance. * * <p> * However, this form avoids superfluous object creation when the logger is disabled * for level ERROR. * </p> * * @param format * the format string * @param arg * the argument */ @Override public void error(String format, Object arg) { if (logger.isErrorEnabled()) { FormattingTuple ft = MessageFormatter.format(format, arg); logger.error(ft.getMessage(), ft.getThrowable()); } }
/** * Delegates to the {@link Log#info(Object)} method of the underlying * {@link Log} instance. * * <p> * However, this form avoids superfluous object creation when the logger is disabled * for level INFO. * </p> * * @param format * the format string * @param arg * the argument */ @Override public void info(String format, Object arg) { if (logger.isInfoEnabled()) { FormattingTuple ft = MessageFormatter.format(format, arg); logger.info(ft.getMessage(), ft.getThrowable()); } } /**
/** * Delegates to the {@link Log#debug(Object)} method of the underlying * {@link Log} instance. * * <p> * However, this form avoids superfluous object creation when the logger is disabled * for level DEBUG. * </p> * * @param format * the format string * @param arg * the argument */ @Override public void debug(String format, Object arg) { if (logger.isDebugEnabled()) { FormattingTuple ft = MessageFormatter.format(format, arg); logger.debug(ft.getMessage(), ft.getThrowable()); } }
/** * Delegates to the {@link Log#warn(Object)} method of the underlying * {@link Log} instance. * * <p> * However, this form avoids superfluous object creation when the logger is disabled * for level WARN. * </p> * * @param format * the format string * @param arg * the argument */ @Override public void warn(String format, Object arg) { if (logger.isWarnEnabled()) { FormattingTuple ft = MessageFormatter.format(format, arg); logger.warn(ft.getMessage(), ft.getThrowable()); } }
/** * Log a message at the WARN level according to the specified format and * argument. * * <p> * This form avoids superfluous object creation when the logger is disabled * for the WARN level. * </p> * * @param format * the format string * @param arg * the argument */ @Override public void warn(String format, Object arg) { if (logger.isEnabledFor(Level.WARN)) { FormattingTuple ft = MessageFormatter.format(format, arg); logger.log(FQCN, Level.WARN, ft.getMessage(), ft.getThrowable()); } }
/** * Log a message at the ERROR level according to the specified format and * argument. * * <p> * This form avoids superfluous object creation when the logger is disabled * for the ERROR level. * </p> * * @param format * the format string * @param arg * the argument */ @Override public void error(String format, Object arg) { if (logger.isEnabledFor(Level.ERROR)) { FormattingTuple ft = MessageFormatter.format(format, arg); logger.log(FQCN, Level.ERROR, ft.getMessage(), ft.getThrowable()); } }
/** * Log a message at the ERROR level according to the specified format and * arguments. * * <p> * This form avoids superfluous object creation when the logger is disabled * for the ERROR level. * </p> * * @param format * the format string * @param argA * the first argument * @param argB * the second argument */ @Override public void error(String format, Object argA, Object argB) { if (logger.isEnabledFor(Level.ERROR)) { FormattingTuple ft = MessageFormatter.format(format, argA, argB); logger.log(FQCN, Level.ERROR, ft.getMessage(), ft.getThrowable()); } }
/** * Delegates to the {@link Log#warn(Object)} method of the underlying * {@link Log} instance. * * <p> * However, this form avoids superfluous object creation when the logger is disabled * for level WARN. * </p> * * @param format * the format string * @param argA * the first argument * @param argB * the second argument */ @Override public void warn(String format, Object argA, Object argB) { if (logger.isWarnEnabled()) { FormattingTuple ft = MessageFormatter.format(format, argA, argB); logger.warn(ft.getMessage(), ft.getThrowable()); } }
/** * Log a message at level DEBUG according to the specified format and * arguments. * * <p> * This form avoids superfluous object creation when the logger is disabled * for the DEBUG level. * </p> * * @param format * the format string * @param argA * the first argument * @param argB * the second argument */ @Override public void debug(String format, Object argA, Object argB) { if (logger.isDebugEnabled()) { FormattingTuple ft = MessageFormatter.format(format, argA, argB); logger.log(FQCN, Level.DEBUG, ft.getMessage(), ft.getThrowable()); } }
/** * Delegates to the {@link Log#trace(Object)} method of the underlying * {@link Log} instance. * * <p> * However, this form avoids superfluous object creation when the logger is disabled * for level TRACE. * </p> * * @param format * the format string * @param argA * the first argument * @param argB * the second argument */ @Override public void trace(String format, Object argA, Object argB) { if (logger.isTraceEnabled()) { FormattingTuple ft = MessageFormatter.format(format, argA, argB); logger.trace(ft.getMessage(), ft.getThrowable()); } }
/** * Delegates to the {@link Log#debug(Object)} method of the underlying * {@link Log} instance. * * <p> * However, this form avoids superfluous object creation when the logger is disabled * for level DEBUG. * </p> * * @param format * the format string * @param argA * the first argument * @param argB * the second argument */ @Override public void debug(String format, Object argA, Object argB) { if (logger.isDebugEnabled()) { FormattingTuple ft = MessageFormatter.format(format, argA, argB); logger.debug(ft.getMessage(), ft.getThrowable()); } }
/** * Delegates to the {@link Log#info(Object)} method of the underlying * {@link Log} instance. * * <p> * However, this form avoids superfluous object creation when the logger is disabled * for level INFO. * </p> * * @param format * the format string * @param argA * the first argument * @param argB * the second argument */ @Override public void info(String format, Object argA, Object argB) { if (logger.isInfoEnabled()) { FormattingTuple ft = MessageFormatter.format(format, argA, argB); logger.info(ft.getMessage(), ft.getThrowable()); } }
/** * Delegates to the {@link Log#error(Object)} method of the underlying * {@link Log} instance. * * <p> * However, this form avoids superfluous object creation when the logger is disabled * for level ERROR. * </p> * * @param format * the format string * @param argA * the first argument * @param argB * the second argument */ @Override public void error(String format, Object argA, Object argB) { if (logger.isErrorEnabled()) { FormattingTuple ft = MessageFormatter.format(format, argA, argB); logger.error(ft.getMessage(), ft.getThrowable()); } }
/** * Log a message at the INFO level according to the specified format and * arguments. * * <p> * This form avoids superfluous object creation when the logger is disabled * for the INFO level. * </p> * * @param format * the format string * @param argA * the first argument * @param argB * the second argument */ @Override public void info(String format, Object argA, Object argB) { if (logger.isInfoEnabled()) { FormattingTuple ft = MessageFormatter.format(format, argA, argB); logger.log(FQCN, Level.INFO, ft.getMessage(), ft.getThrowable()); } }
/** * Log a message at the WARN level according to the specified format and * arguments. * * <p> * This form avoids superfluous object creation when the logger is disabled * for the WARN level. * </p> * * @param format * the format string * @param argA * the first argument * @param argB * the second argument */ @Override public void warn(String format, Object argA, Object argB) { if (logger.isEnabledFor(Level.WARN)) { FormattingTuple ft = MessageFormatter.format(format, argA, argB); logger.log(FQCN, Level.WARN, ft.getMessage(), ft.getThrowable()); } }
/** * Log a message at level INFO according to the specified format and argument. * * <p> * This form avoids superfluous object creation when the logger is disabled * for the INFO level. * </p> * * @param format * the format string * @param arg * the argument */ @Override public void info(String format, Object arg) { if (logger.isInfoEnabled()) { FormattingTuple ft = MessageFormatter.format(format, arg); logger.log(FQCN, Level.INFO, ft.getMessage(), ft.getThrowable()); } }
/** * Delegates to the {@link Log#debug(Object)} method of the underlying * {@link Log} instance. * * <p> * However, this form avoids superfluous object creation when the logger is disabled * for level DEBUG. * </p> * * @param format * the format string * @param arg * the argument */ @Override public void debug(String format, Object arg) { if (logger.isDebugEnabled()) { FormattingTuple ft = MessageFormatter.format(format, arg); logger.debug(ft.getMessage(), ft.getThrowable()); } }