Configure logging in the Wunderkind Mobile SDK
The Wunderkind SDK provides logging capabilities to help you validate user data and debug your implementation. These logs report on events collected and are useful to troubleshoot any issues.
Setting the Log Level
Setting the logLevel
property to debug
will allow you to trace data going through the SDK.
Wunderkind.getInstance().setLogLevel(LogLevel.DEBUG);
Wunderkind.shared.logLevel = .debug
Wunderkind.setLoggingLevel(LogLevel.debug);
Wunderkind.setLoggingLevel(LogLevel.DEBUG)
Disabling Logs
You can disable logging by setting the logLevel
property to none
:
Wunderkind.getInstance().setLogLevel(LogLevel.NONE);
Wunderkind.shared.logLevel = .none
Wunderkind.setLoggingLevel(LogLevel.none);
Wunderkind.setLoggingLevel(LogLevel.NONE)
The default logLevel
is info
, which notifies you about events deemed to be important (Activation, Validation Errors, etc.).