DrAma999 / LittleBlueTooth

A simple library that helps you in connecting with BLE devices
MIT License
79 stars 17 forks source link

Can I suppress debug output? #16

Closed yukilabo closed 3 years ago

yukilabo commented 3 years ago

When I use LittleBlueTooth to communicate with a device periodically, the combine debug print fills up the console. Is it possible to turn on/off the debug output?

DrAma999 commented 3 years ago

Hello there @yukilabo, depends. There are 3 types of log:

On the other hand you can safely fork the project and delete them.

I will try to figure out something this week end :-)

Best, Andrea

DrAma999 commented 3 years ago

So it seemed to be easier than I though. Now all log are disabled by default, if you want to enable them just set the property isLogEnabled in the configuration object before passing to LittleBluetooth instance. Just update the project.

yukilabo commented 3 years ago

Thank you so much for modify log system!

DrAma999 commented 3 years ago

Thank you so much for modify log system!

Arigato gozaimasu for using my library :-D