Step 2: Enable logging

Prev Next

Enable logging

It's possible to attach a custom logger to the SDK, which allows the host application to have more control over what and how to log.
To attach the logger, add the following to the code:

ULUpliftSDK.getInstance().setUpliftLogger(object : UpliftLogger {
    override fun log(level: Level, message: String) {
        // log the message from here as you want
    }
)