Closed charlesnicholson closed 5 months ago
It would be very nice if the bluez_inc log handler took a user-supplied logging callback. In our setup we already have a full logging + diagnostics system, and I want to just plug bluez_inc logs into that.
bluez_inc
If bluez_inc had something like:
typedef void (*log_cb)(LogLevel level, char const *tag, char const *msg); void log_set_cb(log_cb cb);
Then bluez_inc could use its own logger by default, but if I provide my own all bluez_inc logs would only go through my callback.
(If you're interested, I could try a PR)
Yes, good idea, feel free to raise a PR!
Thx for the PR!
It would be very nice if the
bluez_inc
log handler took a user-supplied logging callback. In our setup we already have a full logging + diagnostics system, and I want to just plugbluez_inc
logs into that.If
bluez_inc
had something like:Then
bluez_inc
could use its own logger by default, but if I provide my own allbluez_inc
logs would only go through my callback.(If you're interested, I could try a PR)