/** * Log an exception (throwable) at the DEBUG level with an accompanying message. If the exception is null, then this method * calls {@link #debug(String, 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 */ @Override public void debug( Throwable t, String message, Object... params ) { if (!isDebugEnabled()) return; logger.write(MessageType.DEBUG, message, params, t); }
/** * Log an exception (throwable) at the TRACE level with an accompanying message. If the exception is null, then this method * calls {@link #trace(String, 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 */ @Override public void trace( Throwable t, String message, Object... params ) { if (!isTraceEnabled()) return; logger.write(MessageType.TRACE, message, params, t); }
/** * Log a message at the ERROR level according to the specified format and (optional) parameters. The message should contain a * pair of empty curly braces for each of the parameter, which should be passed in the correct order. This method is efficient * and avoids superfluous object creation when the logger is disabled for the ERROR level. * * @param message the message string * @param params the parameter values that are to replace the variables in the format string */ @Override public void error( I18nResource message, Object... params ) { if (!isErrorEnabled()) return; logger.write(MessageType.ERROR, message, params, null); }
/** * Log a message at the DEBUG level according to the specified format and (optional) parameters. The message should contain a * pair of empty curly braces for each of the parameter, which should be passed in the correct order. This method is efficient * and avoids superfluous object creation when the logger is disabled for the DEBUG level. * * @param message the message string * @param params the parameter values that are to replace the variables in the format string */ @Override public void debug( String message, Object... params ) { if (!isDebugEnabled()) return; logger.write(MessageType.DEBUG, message, params, null); }
/** * Log an exception (throwable) at the ERROR level with an accompanying message. If the exception is null, then this method * calls {@link org.modeshape.common.logging.Logger#error(org.modeshape.common.i18n.I18nResource, 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 */ @Override public void error( Throwable t, I18nResource message, Object... params ) { if (!isErrorEnabled()) return; logger.write(MessageType.ERROR, message, params, t); }
/** * Log a message at the TRACE level according to the specified format and (optional) parameters. The message should contain a * pair of empty curly braces for each of the parameter, which should be passed in the correct order. This method is efficient * and avoids superfluous object creation when the logger is disabled for the TRACE level. * * @param message the message string * @param params the parameter values that are to replace the variables in the format string */ @Override public void trace( String message, Object... params ) { if (!isTraceEnabled()) return; logger.write(MessageType.TRACE, message, params, null); }
/** * Log an exception (throwable) at the INFO level with an accompanying message. If the exception is null, then this method * calls {@link org.modeshape.common.logging.Logger#info(org.modeshape.common.i18n.I18nResource, 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 */ @Override public void info( Throwable t, I18nResource message, Object... params ) { if (!isInfoEnabled()) return; logger.write(MessageType.INFO, message, params, t); }
/** * Log a message at the INFO level according to the specified format and (optional) parameters. The message should contain a * pair of empty curly braces for each of the parameter, which should be passed in the correct order. This method is efficient * and avoids superfluous object creation when the logger is disabled for the INFO level. * * @param message the message string * @param params the parameter values that are to replace the variables in the format string */ @Override public void info( I18nResource message, Object... params ) { if (!isInfoEnabled()) return; logger.write(MessageType.INFO, message, params, null); }
@Override public void warn( I18nResource message, Object... params ) { if (!isWarnEnabled()) return; logger.write(MessageType.WARNING, message, params, null); }
@Override public void warn( Throwable t, I18nResource message, Object... params ) { if (!isWarnEnabled()) return; logger.write(MessageType.WARNING, message, params, t); }