Documentation Index
Fetch the complete documentation index at: https://docs.spikeapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Getting logs for troubleshooting and debugging from Spike SDK for Android platform.
Documentation Index
Fetch the complete documentation index at: https://docs.spikeapi.com/llms.txt
Use this file to discover all available pages before exploring further.
SpikeConnectionAPIv3.setLogCallback { level, message ->
when (level) {
LogLevel.VERBOSE -> {}
LogLevel.DEBUG -> if(BuildConfig.DEBUG) {
Log.d("SpikeSDK", message)
}
LogLevel.WARNING -> Log.w("SpikeSDK", message)
LogLevel.ERROR -> Log.e("SpikeSDK", message)
}
}
class MyApplication: Application() {
override fun onCreate() {
super.onCreate()
SpikeConnectionAPIv3.setLogCallback { level, message ->
when (level) {
LogLevel.VERBOSE -> {}
LogLevel.DEBUG -> if(BuildConfig.DEBUG) {
Log.d("SpikeSDK", message)
}
LogLevel.WARNING -> Log.w("SpikeSDK", message)
LogLevel.ERROR -> Log.e("SpikeSDK", message)
}
}
}
}
<application
android:name=".MyApplication"
...
>