Log stdout and stderr.