constructor(config){ super(); this.log = log; this.log.setDefaultLevel(config.options.logLevel); this.config = config; this.reconnectLog = 0; this.mqtt = null; this.lostConnectionLog = new TinyCache(); }
constructor(config) { this.log = log; this.log.setDefaultLevel(config.options.logLevel); this.config = config; this.useLtpa = this.config.auth && this.config.auth.useLtpa; this.log.debug("[ApiClient:constructor] ApiClient initialized for " + this.config.getApiBaseUri()); }
function main() { log.setDefaultLevel('info')