setLogging

@JvmStatic
fun setLogging(level: LogLevel, listener: LogListener?, vararg modules: ModuleLogger)

Enable/Disable Logging in the SFMCSdk.

Parameters

level

the LogLevel of the output. Setting this to LogLevel.NONE will disable logs.

listener

the LogListener to send the logs to. The SDK contains a default LogCat implementation as AndroidLogger. Setting this to null will disable logs.

modules

the ModuleLogger values to enable logging for. If none are provided, all modules will be enabled by default.