TAustin
September 3, 2023, 6:52pm
1
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
RBoy
(www.rboyapps.com - Making SmartThings Easy!)
September 3, 2023, 9:10pm
2
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
TAustin
September 3, 2023, 9:22pm
3
Aw, I searched but must have missed it. Thank you!
csstup
(Corey Stup)
September 4, 2023, 6:01am
4
TAustin:
device.log.info(xxxx)
TAustin:
log.info(xxxx)
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