common
Class Logger

java.lang.Object
  extended bycommon.Logger
Direct Known Subclasses:
Log4JLogger, SimpleLogger

public abstract class Logger
extends java.lang.Object

Abstract wrapper class for the logging interface of choice. The methods declared here are the same as those for the log4j


Constructor Summary
protected Logger()
          Constructor
 
Method Summary
abstract  void debug(java.lang.Object message)
          Log a debug message
abstract  void debug(java.lang.Object message, java.lang.Throwable t)
          Log a debug message and exception
abstract  void error(java.lang.Object message)
          Log an error message
abstract  void error(java.lang.Object message, java.lang.Throwable t)
          Log an error message object and exception
abstract  void fatal(java.lang.Object message)
          Log a fatal message
abstract  void fatal(java.lang.Object message, java.lang.Throwable t)
          Log a fatal message and exception
static Logger getLogger(java.lang.Class cl)
          Factory method to return the logger
protected abstract  Logger getLoggerImpl(java.lang.Class cl)
          Accessor to the logger implementation
abstract  void info(java.lang.Object message)
          Log an information message
abstract  void info(java.lang.Object message, java.lang.Throwable t)
          Logs an information message and an exception
 void setSuppressWarnings(boolean w)
          Empty implementation of the suppressWarnings.
abstract  void warn(java.lang.Object message)
          Log a warning message object
abstract  void warn(java.lang.Object message, java.lang.Throwable t)
          Log a warning message with exception
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger

protected Logger()
Constructor

Method Detail

getLogger

public static final Logger getLogger(java.lang.Class cl)
Factory method to return the logger


debug

public abstract void debug(java.lang.Object message)
Log a debug message


debug

public abstract void debug(java.lang.Object message,
                           java.lang.Throwable t)
Log a debug message and exception


error

public abstract void error(java.lang.Object message)
Log an error message


error

public abstract void error(java.lang.Object message,
                           java.lang.Throwable t)
Log an error message object and exception


fatal

public abstract void fatal(java.lang.Object message)
Log a fatal message


fatal

public abstract void fatal(java.lang.Object message,
                           java.lang.Throwable t)
Log a fatal message and exception


info

public abstract void info(java.lang.Object message)
Log an information message


info

public abstract void info(java.lang.Object message,
                          java.lang.Throwable t)
Logs an information message and an exception


warn

public abstract void warn(java.lang.Object message)
Log a warning message object


warn

public abstract void warn(java.lang.Object message,
                          java.lang.Throwable t)
Log a warning message with exception


getLoggerImpl

protected abstract Logger getLoggerImpl(java.lang.Class cl)
Accessor to the logger implementation


setSuppressWarnings

public void setSuppressWarnings(boolean w)
Empty implementation of the suppressWarnings. Subclasses may or may not override this method. This method is included primarily for backwards support of the jxl.nowarnings property, and is used only by the SimpleLogger

Parameters:
w - suppression flag