org.oddjob.logging
Class LoggingOutputStream
java.lang.Object
java.io.OutputStream
org.oddjob.logging.AbstractLoggingOutput
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
dispatch
protected void dispatch(String message)
- Specified by:
dispatch
in class AbstractLoggingOutput