NordicSemiconductor / Android-DFU-Library

Device Firmware Update library and Android app
http://www.nordicsemi.com/dfu
BSD 3-Clause "New" or "Revised" License
753 stars 263 forks source link

Fix log levels #416

Closed philips77 closed 8 months ago

philips77 commented 8 months ago

nRF Logger app is using it's own log levels. The DFU library is using the same levels, which are not compatible with android.util.Log priorities. The generic BleLogger class in :logger common module is expecting priorities, not levels, so those have to be translated. Later, when the BleLogger is logging to nRF Logger, it's converting priorities to levels again.

What does this PR fix? Logs are printed with their correct level/priority both on LogCat and nRF Logger app.