com.croftsoft.core.util.log
Class PrintStreamLog

java.lang.Object
  extended by 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

Field Summary
static PrintStreamLog SYSTEM_ERR_INSTANCE
           
static PrintStreamLog SYSTEM_OUT_INSTANCE
           
 
Constructor Summary
PrintStreamLog(PrintStream printStream)
           
 
Method Summary
 void record(String message)
           
 void record(String message, Throwable throwable)
           
 void record(Throwable throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_OUT_INSTANCE

public static final PrintStreamLog SYSTEM_OUT_INSTANCE

SYSTEM_ERR_INSTANCE

public static final PrintStreamLog SYSTEM_ERR_INSTANCE
Constructor Detail

PrintStreamLog

public PrintStreamLog(PrintStream printStream)
Method Detail

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 Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)