Reedyuk / blue-falcon

A Bluetooth kotlin multiplatform "Cross-Platform" library for iOS and Android
https://bluefalcon.dev
Apache License 2.0
321 stars 43 forks source link

Allow log configuration #113

Closed SarahDelCastillo closed 2 weeks ago

SarahDelCastillo commented 8 months ago

When scanning with BlueFalcon, the console is completely flooded with logs like this:

Discovered device null
Discovered device DatiPlus-K00001B
Discovered device DatiPlus-K00001B
Discovered device null
Discovered device null
Discovered device Apple TV
Discovered device Apple TV
Discovered device null
Discovered device null
Discovered device null

It would be great if we could configure/deactivate logging.

I tried just filtering on the console but its not a viable solution if I need to see other similar logs.

Reedyuk commented 8 months ago

Good point, we should probably expose some sort of logger interface and then allow the consumer of the library to set/handle the logs

Reedyuk commented 2 weeks ago

@SarahDelCastillo - this is now complete v 1.2.0