Collect internal SDK logs in iOS

  1. Set the SDK log level. Configure RCCoreClient’s logLevel after SDK initWithAppKey. For example, set it to RC_Log_Level_Error to collect only error logs, or RC_Log_Level_Info to collect general info, warnings, and errors.

  2. Call setRCLogInfoDelegate on RCCoreClient to set the delegate and implement the method:

- (void)didOccurLog:(NSString *)logInfo;

When the SDK generates logs, your app retrieves internal SDK logs through this delegate method.

Note: Assign the delegate to a class that persists throughout the app’s lifecycle, like a singleton or AppDelegate.