Step 2: Enable logging
  • 29 Jul 2025
  • 1 Minute to read
  • Dark
    Light

Step 2: Enable logging

  • Dark
    Light

Article summary

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
    }
)


Was this article helpful?