Skip to content

How to get the logs from the SDK

TN edited this page Aug 2, 2024 · 3 revisions

Debugging with IPification

Android

Enabling Debug Mode

To enable debug mode for IPification, add the following code snippet within your initialization function:

private fun initIPification() {
    // Enable debug mode for IPification
    IPConfiguration.getInstance().debug = true
}

Retrieving and Printing Logs

To retrieve and print logs, include the following code in the callback of the IPification function:

...
// Retrieve and print logs in the IPification callback
Log.d("IP Logs", IPLogs.getInstance().LOG)
...

iOS

Enabling Debug Mode

To enable debug mode for IPification, add the following code snippet within your initialization function:

func initIPification() {
    // Enable debug mode for IPification
    IPConfiguration.sharedInstance.debug = true
}

Retrieving and Printing Logs

To retrieve and print logs, include the following code in the callback of the IPification function:

...
// Retrieve and print logs in the IPification callback
print(IPLogs.sharedInstance.log)
...