--- title: "Step 2: Enable logging" slug: "step2-enable-logging" updated: 2025-07-29T19:05:13Z published: 2025-07-29T19:05:13Z canonical: "developer.upgrade.com/step2-enable-logging" --- > ## Documentation Index > Fetch the complete documentation index at: https://developer.upgrade.com/llms.txt > Use this file to discover all available pages before exploring further. # Step 2: Enable logging ### 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 } ) ```