/** * 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 arguments a list of 3 or more arguments */ @Override public void debug(String format, Object... arguments) { if (logger.isDebugEnabled()) { FormattingTuple ft = MessageFormatter.arrayFormat(format, arguments); logger.debug(ft.getMessage(), ft.getThrowable()); } }
final Object[] argArray) { if (argArray == null || argArray.length == 0) { return new FormattingTuple(messagePattern, null); return new FormattingTuple(null, throwable); if (j == -1) { return new FormattingTuple(messagePattern, throwable); return new FormattingTuple(sbuf.toString(), L <= lastArrIdx? throwable : null);
/** * 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 arguments a list of 3 or more arguments */ @Override public void info(String format, Object... arguments) { if (logger.isInfoEnabled()) { FormattingTuple ft = MessageFormatter.arrayFormat(format, arguments); logger.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 arguments a list of 3 or more arguments */ @Override public void trace(String format, Object... arguments) { if (logger.isTraceEnabled()) { FormattingTuple ft = MessageFormatter.arrayFormat(format, arguments); logger.trace(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 arguments a list of 3 or more arguments */ @Override public void warn(String format, Object... arguments) { if (logger.isWarnEnabled()) { FormattingTuple ft = MessageFormatter.arrayFormat(format, arguments); logger.warn(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 arguments a list of 3 or more arguments */ @Override public void error(String format, Object... arguments) { if (logger.isErrorEnabled()) { FormattingTuple ft = MessageFormatter.arrayFormat(format, arguments); logger.error(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()); } }
/** * 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 arguments an array of arguments */ @Override public void debug(String format, Object... arguments) { if (logger.isDebugEnabled()) { FormattingTuple ft = MessageFormatter.arrayFormat(format, arguments); logger.log(FQCN, Level.DEBUG, ft.getMessage(), ft.getThrowable()); } }
/** * Log a message at level WARN 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 argArray * an array of arguments */ @Override public void warn(String format, Object... argArray) { if (logger.isEnabledFor(Level.WARN)) { FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray); logger.log(FQCN, Level.WARN, 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()); } }
/** * 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()); } }
/** * Log a message at level ERROR 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 argArray * an array of arguments */ @Override public void error(String format, Object... argArray) { if (logger.isEnabledFor(Level.ERROR)) { FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray); logger.log(FQCN, Level.ERROR, 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()); } }
/** * Log a message at level INFO 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 argArray * an array of arguments */ @Override public void info(String format, Object... argArray) { if (logger.isInfoEnabled()) { FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray); logger.log(FQCN, Level.INFO, 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()); } }
/** * 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()); } } /**
/** * 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()); } }