Kotlin SDK Log Levels

The SDK includes a built-in logger that uses the system logger to log various messages, such as debug information, warnings, and errors. You can configure the logging level to enable all logs, disable logging entirely, or set a custom level.

Note: All logs are tagged with tag:[DY] so you can filter them in your log system.

Supported log levels

Each log level prints all log levels above it as well. The default logging level is WARN, which means the logger prints logs with the following levels: WARN, ERROR, and ASSERT.

Kotlin Log Levels
VERBOSE(2)
DEBUG(3)
INFO(4)
WARN(5) - default
ERROR(6)
ASSERT(7)
OFF(8)

Customize the log level

Use this function to modify the default logging level:

DYSdk.getInstance().setLogLevel(LogLevel.DEBUG)