com.croftsoft.core.util.log
Class PrintStreamLog
java.lang.Object
com.croftsoft.core.util.log.PrintStreamLog
- All Implemented Interfaces:
- Log
public final class PrintStreamLog
- extends Object
- implements Log
Writes log entries out to a PrintStream.
All methods are synchronized.
Example:
Log log = new PrintStreamLog ( System.out );
- Since:
- 2001-02-27
- Version:
- 2001-08-02
- Author:
- David Wallace Croft
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SYSTEM_OUT_INSTANCE
public static final PrintStreamLog SYSTEM_OUT_INSTANCE
SYSTEM_ERR_INSTANCE
public static final PrintStreamLog SYSTEM_ERR_INSTANCE
PrintStreamLog
public PrintStreamLog(PrintStream printStream)
record
public void record(String message)
- Specified by:
record
in interface Log
record
public void record(Throwable throwable)
- Specified by:
record
in interface Log
record
public void record(String message,
Throwable throwable)
- Specified by:
record
in interface Log
CroftSoft Core Javadoc (2008-09-28 20:58:02)