Logging
Native iOS Inform SDK
The Validic frameworks include extra logging which can be enabled in debug or production app builds to help Validic Support with troubleshooting. The logs must be manually collected and shared with Validic Support - they are not automatically uploaded anywhere. To retrieve the logs, you can:
- Run your app in Xcode and collect the logs from the debugger output
- Implement a custom log handler
- Use Sysdiagnose to retrieve the system_logs.logarchive
To enable logging, use VLDLogging:
VLDLogging.sharedInstance().isEnabled = true
To set a custom log handler (usually not necessary):
VLDLogging.sharedInstance().logger = { sdkTag, message in
print("Tag: \(sdkTag), Message: \(message)")
}
Updated 18 days ago