Add logging of stdout and stderr