Read both stdoud and stderr for logging.