/** * A simple implementation which logs messages of level TRACE according to * the format outlined above. */ public void trace(String msg) { log(LOG_LEVEL_TRACE, msg, null); }
/** * A simple implementation which always logs messages of level WARN * according to the format outlined above. */ public void warn(String msg) { log(LOG_LEVEL_WARN, msg, null); }
/** * A simple implementation which logs messages of level DEBUG according to * the format outlined above. */ public void debug(String msg) { log(LOG_LEVEL_DEBUG, msg, null); }
/** * A simple implementation which logs messages of level INFO according to * the format outlined above. */ public void info(String msg) { log(LOG_LEVEL_INFO, msg, null); }
/** * A simple implementation which always logs messages of level ERROR * according to the format outlined above. */ public void error(String msg) { log(LOG_LEVEL_ERROR, msg, null); }
/** Log a message of level DEBUG, including an exception. */ public void debug(String msg, Throwable t) { log(LOG_LEVEL_DEBUG, msg, t); }
/** Log a message of level INFO, including an exception. */ public void info(String msg, Throwable t) { log(LOG_LEVEL_INFO, msg, t); }
/** Log a message of level WARN, including an exception. */ public void warn(String msg, Throwable t) { log(LOG_LEVEL_WARN, msg, t); }
/** Log a message of level TRACE, including an exception. */ public void trace(String msg, Throwable t) { log(LOG_LEVEL_TRACE, msg, t); }
/** Log a message of level ERROR, including an exception. */ public void error(String msg, Throwable t) { log(LOG_LEVEL_ERROR, msg, t); }
/** * For formatted messages, first substitute arguments and then log. * * @param level * @param format * @param arguments * a list of 3 ore more arguments */ private void formatAndLog(int level, String format, Object... arguments) { if (!isLevelEnabled(level)) { return; } FormattingTuple tp = MessageFormatter.arrayFormat(format, arguments); log(level, tp.getMessage(), tp.getThrowable()); }
/** * For formatted messages, first substitute arguments and then log. * * @param level * @param format * @param arg1 * @param arg2 */ private void formatAndLog(int level, String format, Object arg1, Object arg2) { if (!isLevelEnabled(level)) { return; } FormattingTuple tp = MessageFormatter.format(format, arg1, arg2); log(level, tp.getMessage(), tp.getThrowable()); }
public void log(LoggingEvent event) { int levelInt = event.getLevel().toInt(); if (!isLevelEnabled(levelInt)) { return; } FormattingTuple tp = MessageFormatter.arrayFormat(event.getMessage(), event.getArgumentArray(), event.getThrowable()); log(levelInt, tp.getMessage(), event.getThrowable()); }
/** * A simple implementation which logs messages of level TRACE according * to the format outlined above. */ public void trace(final String msg) { log(LOG_LEVEL_TRACE, msg, null); }
/** * Log a message of level TRACE, including an exception. */ public void trace(final String msg, final Throwable t) { log(LOG_LEVEL_TRACE, msg, t); }
/** * Log a message of level ERROR, including an exception. */ public void error(final String msg, final Throwable t) { log(LOG_LEVEL_ERROR, msg, t); } }
/** * A simple implementation which logs messages of level TRACE according to * the format outlined above. */ @Override public void trace(String msg) { log(LOG_LEVEL_TRACE, msg, null); }
/** * Log a message of level WARN, including an exception. */ public void warn(String msg, Throwable t) { log(LogLevel.WARN, msg, t); }
public void trace(String msg, Throwable t) { if(isTraceEnabled()) { log(TRACE_STR, msg, t); } }
/** * A simple implementation which always logs messages of level INFO * according to the format outlined above. */ public void info(String msg) { if(isInfoEnabled()) { log(INFO_STR, msg, null); } }