New logging methods for drivers?

I was looking at the Bose driver and noticed it is using some logging methods that I haven’t seen before in the forms of:

device.log.info_with({hub_logs = true}, “xxxxx”)
– or –
device.log.info(xxxx)

How is this different from?:

log = require “log”
log.info(xxxx)

1 Like

I think @nayelyz had commented about this earlier. It’s appears to have something to do with internal hubCore logging which is used by the dev team

1 Like

Aw, I searched but must have missed it. Thank you!

I always use ‘device.log’ when a physical device is involved. The log entries then appear with the device name as a prefix (not just the driver name as log directly would do.)

1 Like