setDebugLevel method

  1. @override
Future<void> setDebugLevel(
  1. LogLevel logLevel
)
override

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:

  1. LogLevel.off (disables all debugging),
  2. LogLevel.info (default, shows minimal SDK integration related logging)
  3. LogLevel.DEBUG (shows debug output)
  4. 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});
}