org.eclipse.actf.util.logging
Class ConsoleErrorLogger

java.lang.Object
  extended by org.eclipse.actf.util.logging.AbstractErrorLogger
      extended by org.eclipse.actf.util.logging.ConsoleErrorLogger
All Implemented Interfaces:
IErrorLogger

public class ConsoleErrorLogger
extends AbstractErrorLogger

general logger for writing to the console

Author:
Mike Squillace

Constructor Summary
ConsoleErrorLogger()
          create a console error logger that writes to System.err
ConsoleErrorLogger(PrintStream stream)
          create an error logger for writing to the console
 
Method Summary
 void logError(String msg, Throwable t)
          log an error message along with its corresponding Throwable.
 
Methods inherited from class org.eclipse.actf.util.logging.AbstractErrorLogger
logError, logError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleErrorLogger

public ConsoleErrorLogger()
create a console error logger that writes to System.err


ConsoleErrorLogger

public ConsoleErrorLogger(PrintStream stream)
create an error logger for writing to the console

Parameters:
stream - either System.out or System.err
Method Detail

logError

public void logError(String msg,
                     Throwable t)
log an error message along with its corresponding Throwable. If no message is specified, the class and toString() of the Throwable should be logged.

Parameters:
msg - - error message
t - - Throwable being logged