org.lwes.util
Class Log

java.lang.Object
  extended by org.lwes.util.Log

public class Log
extends java.lang.Object

This is a wrapper class for logging. Instead of embedding log4j or JDK logging statements in the code, we have a wrapper around JDK logging so this could be changed easily in the future. Also, since we prefer the distribution to be simple and standalone, we aren't using Commons Logging so that we don't have to bundle that in the distribution. JDK logging could easily be redirected to the destination of the library user's choice.

Author:
Michael P. Lum

Constructor Summary
Log()
           
 
Method Summary
static void debug(java.lang.String message)
          Log a debug level message
static void error(java.lang.String message)
          Log an error level message
static void error(java.lang.String message, java.lang.Throwable t)
          Log an error level message, with associated Throwable information
static void info(java.lang.String message)
          Log a info level message
static void trace(java.lang.String message)
          Log a trace level message
static void warning(java.lang.String message)
          Log a warning level message
static void warning(java.lang.String message, java.lang.Throwable t)
          Log an warning level message, with associated Throwable information
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log

public Log()
Method Detail

trace

public static void trace(java.lang.String message)
Log a trace level message

Parameters:
message - the message to be logged

debug

public static void debug(java.lang.String message)
Log a debug level message

Parameters:
message - the message to be logged

info

public static void info(java.lang.String message)
Log a info level message

Parameters:
message - the message to be logged

warning

public static void warning(java.lang.String message)
Log a warning level message

Parameters:
message - the message to be logged

warning

public static void warning(java.lang.String message,
                           java.lang.Throwable t)
Log an warning level message, with associated Throwable information

Parameters:
message - the message to be logged
t - the Throwable associated with the log message

error

public static void error(java.lang.String message)
Log an error level message

Parameters:
message - the message to be logged

error

public static void error(java.lang.String message,
                         java.lang.Throwable t)
Log an error level message, with associated Throwable information

Parameters:
message - the message to be logged
t - the Throwable associated with the log message