Exemplo n.º 1
0
 /**
  * logException outputs the stack trace of the pecified exception to the log.
  *
  * @param exception - the exception to log the stack trace of.
  * @param minimumLevel - the minimum log level that must be set for this exception to actually be
  *     logged.
  */
 public static void logException(Exception exception, int minimumLevel) {
   LogHandler handler = getLogHandler();
   handler.log(exception, minimumLevel);
 }
Exemplo n.º 2
0
 /**
  * logMessage outputs the specified message to the log.
  *
  * @param message - the message to log
  * @param minimumLevel - the minimum log level that must be set for this message to actually be
  *     logged.
  */
 public static void logMessage(String message, int minimumLevel) {
   LogHandler handler = getLogHandler();
   handler.log(message, minimumLevel);
 }