Class LogOutputStream

java.lang.Object
java.io.OutputStream
org.apache.commons.exec.LogOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Direct Known Subclasses:
LoggerOutputStream

public abstract class LogOutputStream extends OutputStream
Base class to connect a logging system to the output and/or error stream of then external process. The implementation parses the incoming data to construct a line and passes the complete line to an user-defined implementation.
  • Constructor Details

    • LogOutputStream

      public LogOutputStream()
      Creates a new instance of this class. Uses the default level of 999.
    • LogOutputStream

      public LogOutputStream(int level)
      Creates a new instance of this class.
      Parameters:
      level - loglevel used to log data written to this stream.
  • Method Details