Capture and log output from child process