Android SDK Logging

ENGAGE® Android SDK Logging

The ENGAGE SDK includes a logging interceptor that will allow the host app to access the logs that come from the SDK.

import com.firstorion.engage.core.EngageApp
import com.firstorion.engage.core.IEngageLoggingInterceptor

class MainApplication: Application(), IEngageLoggingInterceptor {
   override fun onCreate(){

        //Enable logging of Engage SDK
    override fun intercept(message: String, level: Int){
        println(" $message")

The ENGAGE SDK also allows you to set the logging level. Logging level sets the minimum Logging Level as defined in Android’s Log class. Default level is set to Log.VERBOSE:

 EngageApp.Settings.setMinimumLoggingLevel(Log.WARNING) // or Log.ERROR etc.