Logging stdout and stderr.