/** * Log a message object with the TRACE level including the stack trace of the * Throwable t passed as parameter. * See Logger.trace(Object) form for more detailed information. * @param message the message object to log. * @param t the exception to log, including its stack trace. */ public void trace(Object message, Throwable t) { log(TRACE, message, t); }
/** * Check whether this logger is enabled for the TRACE Level. * @return true if this logger is enabled for level TRACE, false otherwise. */ public boolean isTraceEnabled() { return isLevelEnabled(TRACE); }
private void setConfigurable(IConfigurable c) { // compare by reference! if (m_configurable != null && m_configurable != c) { LOGGER.warn("Configurable already set"); } m_configurable = c; }
/** * Run all tests. (very crusty ...) * @param pArgs not used */ public static void main(String[] pArgs) { testDebugDefault(); testDebugOn(); testDebugOff(); testDebugError(); testRootLoggerDefault(); testRootLoggerSet(); testRootLoggerSetError(); testUserLoggerSet(); testUserLoggerSetError(); testUserLoggerSetHierarchy(); } }
public static void error(String errorMessage) { LOG.error("[Error] " + errorMessage); }
/** * Log a message object with the ERROR level including the stack trace of the * Throwable t passed as parameter. * See Logger.trace(Object, Throwable) form for more detailed information. * @param message the message object to log. * @param t the exception to log, including its stack trace. */ public void warn(Object message, Throwable t) { log(WARN, message, t); }
private void setHookable(IHookable h) { // compare by reference! if (m_hookable != null && m_hookable != h) { LOGGER.warn("Hookable already set"); } m_hookable = h; }
private static void error(String s) { LOGGER.error(s); }
/** * Check whether this logger is enabled for the INFO Level. * @return true if this logger is enabled for level INFO, false otherwise. */ public boolean isInfoEnabled() { return isLevelEnabled(INFO); }
/** * Log a message object with the FATAL level. * See Logger.trace(Object) form for more detailed information. * @param message the message object to log. */ public void fatal(Object message) { log(FATAL, message, null); }
/** * Check whether this logger is enabled for the DEBUG Level. * @return true if this logger is enabled for level DEBUG, false otherwise. */ public boolean isDebugEnabled() { return isLevelEnabled(DEBUG); }
/** * Log a message object with the DEBUG level including the stack trace of the * Throwable t passed as parameter. * See Logger.trace(Object, Throwable) form for more detailed information. * @param message the message object to log. * @param t the exception to log, including its stack trace. */ public void error(Object message, Throwable t) { log(ERROR, message, t); }
/** * Log a message object with the DEBUG level. * See Logger.trace(Object) form for more detailed information. * @param message the message object to log. */ public void debug(Object message) { log(DEBUG, message, null); }
/** * Log a message object with the WARN level including the stack trace of the * Throwable t passed as parameter. * See Logger.trace(Object, Throwable) form for more detailed information. * @param message the message object to log. * @param t the exception to log, including its stack trace. */ public void info(Object message, Throwable t) { log(INFO, message, t); }
/** * Log a message object with the FATAL level including the stack trace of the * Throwable t passed as parameter. * See Logger.trace(Object, Throwable) form for more detailed information. * @param message the message object to log. * @param t the exception to log, including its stack trace. */ public void fatal(Object message, Throwable t) { log(FATAL, message, t); }
/** * Log a message object with the TRACE level. This method first checks if this * logger is TRACE enabled. If this logger is TRACE enabled, then it converts * the message object (passed as parameter) to a string by invoking toString(). * WARNING Note that passing a Throwable to this method will print the name of * the Throwable but no stack trace. To print a stack trace use the * trace(Object, Throwable) form instead. * @param message the message object to log. */ public void trace(Object message) { log(TRACE, message, null); }
/** * Log a message object with the DEBUG level including the stack trace of the * Throwable t passed as parameter. * See Logger.trace(Object, Throwable) form for more detailed information. * @param message the message object to log. * @param t the exception to log, including its stack trace. */ public void debug(Object message, Throwable t) { log(DEBUG, message, t); }
/** * Log a message object with the ERROR level. * See Logger.trace(Object) form for more detailed information. * @param message the message object to log. */ public void error(Object message) { log(ERROR, message, null); }
/** * Log a message object with the INFO level. * See Logger.trace(Object) form for more detailed information. * @param message the message object to log. */ public void info(Object message) { log(INFO, message, null); }
/** * Log a message object with the WARN level. * See Logger.trace(Object) form for more detailed information. * @param message the message object to log. */ public void warn(Object message) { log(WARN, message, null); }