So you want to log the stdout and stderr (separately) of a process or subprocess, without the output being different from what you\'d see in the terminal i
When you can use the script command:
$ script --return -c "[executable string]" >stdout 2>stderr