common.log
Class SimpleLogger

java.lang.Object
  extended bycommon.Logger
      extended bycommon.log.SimpleLogger

public class SimpleLogger
extends Logger

The default logger. Simple writes everything out to stdout or stderr


Constructor Summary
SimpleLogger()
          Constructor
 
Method Summary
 void debug(java.lang.Object message)
          Log a debug message
 void debug(java.lang.Object message, java.lang.Throwable t)
          Log a debug message and exception
 void error(java.lang.Object message)
          Log an error message
 void error(java.lang.Object message, java.lang.Throwable t)
          Log an error message object and exception
 void fatal(java.lang.Object message)
          Log a fatal message
 void fatal(java.lang.Object message, java.lang.Throwable t)
          Log a fatal message and exception
protected  Logger getLoggerImpl(java.lang.Class c)
          Accessor to the logger implementation
 void info(java.lang.Object message)
          Log an information message
 void info(java.lang.Object message, java.lang.Throwable t)
          Logs an information message and an exception
 void setSuppressWarnings(boolean w)
          Overrides the method in the base class to suppress warnings - it can be set using the system property jxl.nowarnings.
 void warn(java.lang.Object message)
          Log a warning message object
 void warn(java.lang.Object message, java.lang.Throwable t)
          Log a warning message with exception
 
Methods inherited from class common.Logger
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLogger

public SimpleLogger()
Constructor

Method Detail

debug

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

Specified by:
debug in class Logger

debug

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

Specified by:
debug in class Logger

error

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

Specified by:
error in class Logger

error

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

Specified by:
error in class Logger

fatal

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

Specified by:
fatal in class Logger

fatal

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

Specified by:
fatal in class Logger

info

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

Specified by:
info in class Logger

info

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

Specified by:
info in class Logger

warn

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

Specified by:
warn in class Logger

warn

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

Specified by:
warn in class Logger

getLoggerImpl

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

Specified by:
getLoggerImpl in class Logger

setSuppressWarnings

public void setSuppressWarnings(boolean w)
Overrides the method in the base class to suppress warnings - it can be set using the system property jxl.nowarnings. This method was originally present in the WorkbookSettings bean, but has been moved to the logger class. This means it is now present when the JVM is initialized, and subsequent to change it on a Workbook by Workbook basis will prove fruitless

Overrides:
setSuppressWarnings in class Logger
Parameters:
w - suppression flag