org.eclipse.actf.util.logging
Class ConsoleErrorLogger
java.lang.Object
org.eclipse.actf.util.logging.AbstractErrorLogger
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 messaget
- - Throwable being logged