Class ProcessLogger
java.lang.Object
org.opentestfactory.utils.process.ProcessStreamListener
org.opentestfactory.utils.process.ProcessLogger
- All Implemented Interfaces:
Runnable
This class is intended to log stdout from external processes on demand.
- Author:
- edegenetais
-
Constructor Summary
ConstructorsConstructorDescriptionProcessLogger(String processClass, Process process) Creates the stdout logger thread.ProcessLogger(String processClass, Process process, OutputStream targetStream) Creates the stdout logger thread. -
Method Summary
Methods inherited from class org.opentestfactory.utils.process.ProcessStreamListener
run, start
-
Constructor Details
-
ProcessLogger
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
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
-
commitOutputLine
- Specified by:
commitOutputLinein classProcessStreamListener
-