/** * Log an exception (throwable) at the WARNING level with an accompanying message. If the exception is null, then this method * calls {@link #warn(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 warn( Throwable t, I18n message, Object... params ) { if (!isWarnEnabled()) return; if (t == null) { warn(message, params); return; } if (message == null) { this.delegate.warn(null, t); return; } this.delegate.warn(message.text(LOGGING_LOCALE.get(), params), t); }
} catch (IOException e) { I18n msg = CommonI18n.unableToAccessResourceFileFromClassLoader; Logger.getLogger(MimeTypeUtil.class).warn(e, msg, MIME_TYPE_EXTENSIONS_RESOURCE_PATH);
break; case WARNING: warn(message, params); break; case OFF:
break; case WARNING: warn(t, message, params); break; case OFF: