setDebugLevel method
Enables or disables debugging. If enabled, see debug messages in Android's logcat utility. Debug messages are tagged as CleverTap.
level
Can be one of the following:
- LogLevel.off (disables all debugging),
- LogLevel.info (default, shows minimal SDK integration related logging)
LogLevel.DEBUG
(shows debug output)- LogLevel.verbose (shows verbose output)
Implementation
@override
Future<void> setDebugLevel(LogLevel logLevel) {
int logLevelValue = logLevel.value;
SignedCallLogger.setLogLevel(logLevelValue);
return _methodChannel
.invokeMethod(SCMethodCall.logging, {argLogLevel: logLevelValue});
}