Class ProcessLogger

java.lang.Object
org.opentestfactory.utils.process.ProcessStreamListener
org.opentestfactory.utils.process.ProcessLogger
All Implemented Interfaces:
Runnable

public class ProcessLogger extends ProcessStreamListener implements Runnable
This class is intended to log stdout from external processes on demand.
Author:
edegenetais
  • Constructor Details

    • ProcessLogger

      public ProcessLogger(String processClass, Process process)
      Creates the stdout logger thread.
      Parameters:
      processClass - an arbitrary string to describe what kind of process is logged (will be part of the logger name)
      process - the process which stdout we want to log
    • ProcessLogger

      public ProcessLogger(String processClass, Process process, OutputStream targetStream)
      Creates the stdout logger thread.
      Parameters:
      processClass - an arbitrary string to describe what kind of process is logged (will be part of the logger name)
      process - the process which stdout we want to log
  • Method Details