Code Examples
To receive logs from Spike SDK, use the following code:didFinishLaunchingWithOptions method before you start using Spike SDK:
Getting logs for troubleshooting and debugging from Spike SDK for iOS platform.
Spike.setLogCallback { level, message in
print("\(message)")
}
didFinishLaunchingWithOptions method before you start using Spike SDK:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
...
Spike.setLogCallback { level, message in
print("\(message)")
}
Spike.configure()
...
}