initWebBluetoothLogger function
void
initWebBluetoothLogger()
Initialize a default instance of webBluetoothLogger. This will be done automatically the first time the logger is used. Unless setWebBluetoothLogger is used to overwrite the default created logger.
Implementation
void initWebBluetoothLogger() {
final logger = Logger("flutter_web_bluetooth");
Future.sync(() async => await _subscription?.cancel());
_subscription = logger.onRecord.listen((final event) {
// ignore: avoid_print
print("${event.loggerName}: ${event.time}: ${event.message}");
});
_webLogger = logger;
}