Add capture logging for ios devices and simulators
Delete spaces and correcting code style
Delete spaces and correcting code style