configureLogging method
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);
}),
);
}