setLoggingEnabled static method

  1. @Deprecated('This functions is deprecated, please use "setLoggingEnabled" of CountlyConfig to enable/disable logging instead')
Future<String?> setLoggingEnabled(
  1. bool flag
)

Set to true if you want to enable countly internal debugging logs Should be call before Countly init returns the error or success message

Implementation

@Deprecated('This functions is deprecated, please use "setLoggingEnabled" of CountlyConfig to enable/disable logging instead')
static Future<String?> setLoggingEnabled(bool flag) async {
  log('Calling "setLoggingEnabled":[$flag]');
  log('setLoggingEnabled is deprecated, use setLoggingEnabled of CountlyConfig to enable/disable logging', logLevel: LogLevel.WARNING);
  List<String> args = [];
  _isDebug = flag;
  args.add(flag.toString());

  final String? result = await _channel.invokeMethod('setLoggingEnabled', <String, dynamic>{'data': json.encode(args)});

  return result;
}