@Override public InternalLogger newInstance(String name) { return new Log4JLogger(Logger.getLogger(name)); } }
Log4JLogger(Logger logger) { super(logger.getName()); this.logger = logger; traceCapable = isTraceCapable(); }
/** * Log a message at level TRACE according to the specified format and * arguments. * * <p> * This form avoids superfluous object creation when the logger is disabled * for the TRACE level. * </p> * * @param format * the format string * @param arguments * an array of arguments */ @Override public void trace(String format, Object... arguments) { if (isTraceEnabled()) { FormattingTuple ft = MessageFormatter.arrayFormat(format, arguments); logger.log(FQCN, traceCapable ? Level.TRACE : Level.DEBUG, ft .getMessage(), ft.getThrowable()); } }
/** * Log a message at level TRACE according to the specified format and * argument. * * <p> * 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 (isTraceEnabled()) { FormattingTuple ft = MessageFormatter.format(format, arg); logger.log(FQCN, traceCapable ? Level.TRACE : Level.DEBUG, ft .getMessage(), ft.getThrowable()); } }
Log4JLogger(Logger logger) { super(logger.getName()); this.logger = logger; traceCapable = isTraceCapable(); }
@Override public InternalLogger newInstance(String name) { return new Log4JLogger(Logger.getLogger(name)); } }
/** * Log a message at level TRACE according to the specified format and * arguments. * * <p> * This form avoids superfluous object creation when the logger is disabled * for the TRACE level. * </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 (isTraceEnabled()) { FormattingTuple ft = MessageFormatter.format(format, argA, argB); logger.log(FQCN, traceCapable ? Level.TRACE : Level.DEBUG, ft .getMessage(), ft.getThrowable()); } }
Log4JLogger(Logger logger) { super(logger.getName()); this.logger = logger; traceCapable = isTraceCapable(); }
@Override public InternalLogger newInstance(String name) { return new Log4JLogger(Logger.getLogger(name)); } }
/** * Log a message at level TRACE according to the specified format and * argument. * * <p> * 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 (isTraceEnabled()) { FormattingTuple ft = MessageFormatter.format(format, arg); logger.log(FQCN, traceCapable ? Level.TRACE : Level.DEBUG, ft .getMessage(), ft.getThrowable()); } }
Log4JLogger(Logger logger) { super(logger.getName()); this.logger = logger; traceCapable = isTraceCapable(); }
@Override public InternalLogger newInstance(String name) { return new Log4JLogger(Logger.getLogger(name)); } }
/** * Log a message at level TRACE according to the specified format and * arguments. * * <p> * This form avoids superfluous object creation when the logger is disabled * for the TRACE level. * </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 (isTraceEnabled()) { FormattingTuple ft = MessageFormatter.format(format, argA, argB); logger.log(FQCN, traceCapable ? Level.TRACE : Level.DEBUG, ft .getMessage(), ft.getThrowable()); } }
Log4JLogger(Logger logger) { super(logger.getName()); this.logger = logger; traceCapable = isTraceCapable(); }
@Override public InternalLogger newInstance(String name) { return new Log4JLogger(Logger.getLogger(name)); } }
/** * Log a message at level TRACE according to the specified format and * arguments. * * <p> * This form avoids superfluous object creation when the logger is disabled * for the TRACE level. * </p> * * @param format * the format string * @param arguments * an array of arguments */ @Override public void trace(String format, Object... arguments) { if (isTraceEnabled()) { FormattingTuple ft = MessageFormatter.arrayFormat(format, arguments); logger.log(FQCN, traceCapable ? Level.TRACE : Level.DEBUG, ft .getMessage(), ft.getThrowable()); } }
Log4JLogger(Logger logger) { super(logger.getName()); this.logger = logger; traceCapable = isTraceCapable(); }
@Override public InternalLogger newInstance(String name) { return new Log4JLogger(Logger.getLogger(name)); } }
/** * Log a message at level TRACE according to the specified format and * arguments. * * <p> * This form avoids superfluous object creation when the logger is disabled * for the TRACE level. * </p> * * @param format * the format string * @param arguments * an array of arguments */ @Override public void trace(String format, Object... arguments) { if (isTraceEnabled()) { FormattingTuple ft = MessageFormatter.arrayFormat(format, arguments); logger.log(FQCN, traceCapable ? Level.TRACE : Level.DEBUG, ft .getMessage(), ft.getThrowable()); } }
Log4JLogger(Logger logger) { super(logger.getName()); this.logger = logger; traceCapable = isTraceCapable(); }