setLogLevel

abstract fun setLogLevel(level: Level, logCategory: LogCategory = LogCategory.SMI)

Configures the log output level for SDK components.

Use this to enable verbose logging during development or to silence SDK logs in production. By default, debug builds log at Level.ALL and release builds log at Level.INFO.

You can target a specific LogCategory to narrow the output to a particular subsystem (e.g., network traffic only), or use LogCategory.SMI (the default) to adjust the level for all SDK loggers at once.

Parameters

level

The Level to set. Common values: Level.ALL for verbose output, Level.INFO for standard output, Level.OFF to suppress all logs.

logCategory

The LogCategory to apply the level to. Defaults to LogCategory.SMI which controls all SDK loggers.

See also

Samples

// Enable verbose logging for all SDK components
CoreClient.setLogLevel(Level.ALL)

// Enable verbose logging only for network operations
CoreClient.setLogLevel(Level.ALL, LogCategory.NETWORK)

// Silence all SDK logging in production
CoreClient.setLogLevel(Level.OFF)