org.oddjob.logging
Class LoggingOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.oddjob.logging.AbstractLoggingOutput
          extended by org.oddjob.logging.LoggingOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class LoggingOutputStream
extends AbstractLoggingOutput

An output stream that splits output into an existing output stream if supplied, and a console archive.


Constructor Summary
LoggingOutputStream(OutputStream existing, LogLevel level, LogEventSink consoleArchiver)
          Constructor.
 
Method Summary
protected  void dispatch(String message)
           
 
Methods inherited from class org.oddjob.logging.AbstractLoggingOutput
close, flush, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingOutputStream

public LoggingOutputStream(OutputStream existing,
                           LogLevel level,
                           LogEventSink consoleArchiver)
Constructor.

Parameters:
existing - The output stream to also write to. May be null.
level - The level to use when logging.
consoleArchiver - The logger to write to.
Method Detail

dispatch

protected void dispatch(String message)
Specified by:
dispatch in class AbstractLoggingOutput