Stream stdout and stderr from subprocess processes.
jcozar87 opened this issue · comments
Javier Cózar del Olmo commented
Right now the subprocess run a shell process and return the stdout and stderr at the end of the execution.
It is useful to stream such information in real time.
Jacinto Arias commented
We should also indicate the current project like:
-------------------------
Entering projectA
Running stage xxx:
STDOUT:
<stdout>
STDERR:
<stderr>
-------------------------
Jacinto Arias commented
It would be nice to have an additional parameter to run silently and to print the output to a searchable log. (at least one file for stdout and stderr)
By searchable I mean: Create unique index to identify the section of each project log i.e:
Log-Proj-x
Javier Cózar del Olmo commented
I agree. Indeed, we should use the package logging, and use standard log levels, handlers (stdout or files), etc.