weliem / blessed-bluez

BLE library using Java and Bluez
MIT License
76 stars 21 forks source link

Disabling the DEBUG Log #3

Closed PaulCardoos closed 2 years ago

PaulCardoos commented 3 years ago

blessedBluesDebugLog Is there a way to disable these debug logs? Otherwise fantastic job!

weliem commented 3 years ago

Those all come from the underlying DBus library. I haven't found a way yet to turn those off. For now you could simply set the debuglevel to INFO....

PaulCardoos commented 3 years ago

awesome, are you allowing contributions on this repo?

weliem commented 3 years ago

Sure...only good ones though ;-)

weliem commented 3 years ago

I figured out how to disable the DBUS logging

If you use logback, you can add this to your logback.xml: <logger name="org.freedesktop.dbus" level="INFO" />

If you use log4j2, you have to add this to the Section: <Logger name="org.freedesktop.dbus" level="INFO" />

PaulCardoos commented 2 years ago

This is awesome! Thanks!