setLoggingEnabled static method

Future<void> setLoggingEnabled(
  1. bool enabled
)

Enable or disable SDK logging

Controls verbose logging output from the SDK. Disabled by default in production. Call this method early in your app lifecycle, before SDK initialization, to see all logs.

This controls both Dart-side and native-side logging.

Implementation

static Future<void> setLoggingEnabled(bool enabled) async {
  _loggingEnabled = enabled; // Control Dart-side logging
  await _invokeMethod(
    'setLoggingEnabled',
    {'enabled': enabled},
  ); // Control native-side logging
}