umair13adil / simple_beacons_flutter

A flutter plugin project to range & monitor iBeacons.
Apache License 2.0
35 stars 42 forks source link

version 1.16 #21

Open dariocavada opened 4 years ago

dariocavada commented 4 years ago

I receive lots of messages from BluetoothScanner/BluertoothLEAdapter. Is possible to remove them or messages are inside another package/plugin ?

D/BluetoothAdapter(22631): isLeEnabled(): ON
D/BluetoothLeScanner(22631): onScannerRegistered() - status=0 scannerId=11 mScannerId=0
D/BluetoothAdapter(22631): isLeEnabled(): ON
E/CycledLeScannerForLollipop(22631): Scan failed: a BLE scan with the same settings is already started by the app
D/BluetoothAdapter(22631): isLeEnabled(): ON
D/BluetoothAdapter(22631): isLeEnabled(): ON
D/BluetoothLeScanner(22631): onScannerRegistered() - status=0 scannerId=11 mScannerId=0
D/BluetoothAdapter(22631): isLeEnabled(): ON
D/BluetoothAdapter(22631): isLeEnabled(): ON
D/BluetoothLeScanner(22631): onScannerRegistered() - status=0 scannerId=11 mScannerId=0
D/BluetoothAdapter(22631): isLeEnabled(): ON
D/BluetoothAdapter(22631): isLeEnabled(): ON
D/BluetoothLeScanner(22631): onScannerRegistered() - status=0 scannerId=11 mScannerId=0
D/BluetoothAdapter(22631): isLeEnabled(): ON
D/BluetoothAdapter(22631): isLeEnabled(): ON
D/BluetoothLeScanner(22631): onScannerRegistered() - status=0 scannerId=11 mScannerId=0
D/BluetoothAdapter(22631): isLeEnabled(): ON
D/BluetoothAdapter(22631): isLeEnabled(): ON
umair13adil commented 4 years ago

I believe these logs can be disabled by using AltBeacon's Logger: org.altbeacon.beacon.logging

dariocavada commented 4 years ago

Tried to disable using AltBeacon's logger LogManager... but I continue to receive them. Probably these messages are even lower level ...:

override fun startScanning() {
        //LogManager.setLogger(Loggers.verboseLogger());
        LogManager.setLogger(Loggers.empty());
        LogManager.setVerboseLoggingEnabled(false);

        setUpBLE(context)
        setUpBeaconManager(context)

        if (listOfRegions.isNotEmpty()) {
            Log.i(TAG, "Started Monitoring ${listOfRegions.size} regions.")
            listOfRegions.forEach {
                startMonitoringBeacons(it)
            }
        } else {
            Log.i(TAG, "startScanning: No regions added..")
        }
    }