Closed Patrick-Remy closed 3 years ago
Can you please merge the PR? As I think this is the only thing missing in this package, to be sort of usable as a dependency. I want to publish a homebridge package that relies on this package. But that isn't possible, as long as the previous logger is used, which is not configurable and creates unwanted files.
Hi, thanks for the PR and sorry for the delay. Will test it soon and release/publish if okay. Thanks!
Currently this package is extremely verbose by default, and writes to /tmp files and console by default. This PR replaces the previously included, but rarely popular logging lib
nodelogging
by the widely-used libwinston
. Also it adjusts log levels, to have fine-grained control over the output (now varies from debug, over silly and verbose to info).The previous
verbose
property in the option is replaced bylog
to override and customize any logging behaviour. The simplest is to override log-level to e.g.error
.or disable any outputs
This resolves #24, #23 and #18.
Also the PR #19 can be closed after merging this.