/** * Log a message at INFO level. * @param code the message code * @param arguments the arguments * @throws IllegalArgumentException if some parameters were {@code null} */ public void info(String code, Object... arguments) { if (internal.isInfoEnabled()) { String message = message(code, arguments); internal.info(message); } }
/** * Log a message at WARN level. * @param code the message code * @param arguments the arguments * @throws IllegalArgumentException if some parameters were {@code null} */ public void warn(String code, Object... arguments) { if (internal.isWarnEnabled()) { String message = message(code, arguments); internal.warn(message); } }
/** * Log a message at ERROR level. * @param code the message code * @param arguments the arguments * @throws IllegalArgumentException if some parameters were {@code null} */ public void error(String code, Object... arguments) { if (internal.isErrorEnabled()) { String message = message(code, arguments); internal.error(message); } }
/** * Log a message at WARN level. * @param exception the context exception * @param code the message code * @param arguments the arguments * @throws IllegalArgumentException if some parameters were {@code null} */ public void warn(Exception exception, String code, Object... arguments) { if (internal.isWarnEnabled()) { String message = message(code, arguments); internal.warn(message, exception); } }
/** * Log a message at WARN level. * @param exception the context exception * @param code the message code * @param arguments the arguments * @throws IllegalArgumentException if some parameters were {@code null} */ public void info(Exception exception, String code, Object... arguments) { if (internal.isInfoEnabled()) { String message = message(code, arguments); internal.info(message, exception); } }
/** * Log a message at ERROR level. * @param exception the context exception * @param code the message code * @param arguments the arguments * @throws IllegalArgumentException if some parameters were {@code null} */ public void error(Exception exception, String code, Object... arguments) { if (internal.isErrorEnabled()) { String message = message(code, arguments); internal.error(message, exception); } }