setWebBluetoothLogger function

void setWebBluetoothLogger(
  1. Logger logger
)

Overwrite the logger used so you can decide where the log messages go.

If you want to go back to the default logger at a later date then just call initWebBluetoothLogger to overwrite the user set logger for the default one.

Implementation

void setWebBluetoothLogger(final Logger logger) {
  _webLogger = logger;
  Future.sync(() async => await _subscription?.cancel());
  _subscription = null;
}