/** * Log an exception (throwable) at the ERROR level with an accompanying message. If the exception is null, then this method * calls {@link #error(I18n, Object...)}. * * @param t the exception (throwable) to log * @param message the message accompanying the exception * @param params the parameter values that are to replace the variables in the format string */ public void error( Throwable t, I18n message, Object... params ) { if (!isErrorEnabled()) return; if (t == null) { error(message, params); return; } if (message == null) { this.delegate.error(null, t); return; } this.delegate.error(message.text(LOGGING_LOCALE.get(), params), t); }
break; case ERROR: error(message, params); break; case INFO:
break; case ERROR: error(t, message, params); break; case INFO: