configureLogging method

  1. @override
void configureLogging({
  1. required bool enableLogs,
})
override

Configures native logging when supported.

Native logging is disabled by default and should only be enabled for diagnostics.

Implementation

@override
void configureLogging({required bool enableLogs}) {
  unawaited(
    methodChannel.invokeMethod<void>('configureLogging',
        {'enableLogs': enableLogs}).catchError((Object error) {
      if (error is MissingPluginException) {
        return;
      }
      safeLog('Failed to configure native logging', error: error);
    }),
  );
}