com.bluemarsh.jswat.report
Class FileReporter

java.lang.Object
  |
  +--com.bluemarsh.jswat.report.FileReporter
All Implemented Interfaces:
Reporter
Direct Known Subclasses:
ConsoleReporter

public class FileReporter
extends java.lang.Object
implements Reporter

Class FileReporter writes logging events to an output stream.

Version:
1.0 4/7/01
Author:
Nathan Fiedler

Field Summary
protected  java.io.PrintStream printStream
          Stream to which we print logging events.
 
Constructor Summary
FileReporter(java.io.OutputStream stream)
          Constructs a FileReporter that uses the given output stream.
 
Method Summary
 void report(LoggingEvent event)
          Report the given logging event.
 void setOutput(java.io.OutputStream output)
          Set the output stream to which this reporter writes logging events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

printStream

protected java.io.PrintStream printStream
Stream to which we print logging events.
Constructor Detail

FileReporter

public FileReporter(java.io.OutputStream stream)
Constructs a FileReporter that uses the given output stream.
Parameters:
output - output stream to write to.
Method Detail

report

public void report(LoggingEvent event)
Report the given logging event.
Specified by:
report in interface Reporter
Parameters:
event - logging event.

setOutput

public void setOutput(java.io.OutputStream output)
Set the output stream to which this reporter writes logging events.
Parameters:
output - output stream to write to.