The feature request
My usage of this app is with my homebridge plugin homebridge-deebot.
It is standard practice with homebridge plugins to use the homebridge logging function to prefix entries with a timestamp and the plugin instance name. For example:

If any dependency uses console.log then the entry is added to the homebridge log but without the timestamp and plugin name - which can sometimes confuse users as to which plugin is causing the entries - normally only an issue when something is going wrong.
My ideal scenario would be the ability to pass a logging function to this repo in the EcovacsAPI class, for example
constructor(deviceId, country, continent = '', authDomain = '', logFunc = undefined) {
so I can pass the homebridge logger function to the class and it be used in replacement of your repo's default logging function.
My use case would really be:
- if the user has debug logging enabled then I could pass the homebridge log function
- otherwise I could pass either
undefined or an empty function () => {}
Happy to discuss this more on discord if preferred!
Thanks!
The feature request
My usage of this app is with my homebridge plugin
homebridge-deebot.It is standard practice with homebridge plugins to use the homebridge logging function to prefix entries with a timestamp and the plugin instance name. For example:
If any dependency uses
console.logthen the entry is added to the homebridge log but without the timestamp and plugin name - which can sometimes confuse users as to which plugin is causing the entries - normally only an issue when something is going wrong.My ideal scenario would be the ability to pass a logging function to this repo in the EcovacsAPI class, for example
so I can pass the homebridge logger function to the class and it be used in replacement of your repo's default logging function.
My use case would really be:
undefinedor an empty function() => {}Happy to discuss this more on discord if preferred!
Thanks!