Logging Interface

The StreamLayer SDK on Android now has a logging feature.
You invoke the SLRLogListener with the code below. All log messages will start with the tag StreamLayer.
You can add listener using StreamLayer.setLogListener() function:

StreamLayer.setLogListener(object : SLRLogListener{
   override fun log(level: SLRLogLevel, msg: String) {
       // log msg
   }
})

enum class SLRLogLevel {
    VERBOSE, DEBUG, INFO, WARNING, ERROR;
}

You can disable the Logcat SDK internal logging using the StreamLayer.setLogcatLoggingEnabled() function:

// disable internal sdk logcat logging
StreamLayer.setLogcatLoggingEnabled(false)