Closed pharma4u-awahl closed 4 years ago
I think the best way to implement this is to have a default log4js config as a constructor parameter in a class based version of this module. Stay tuned!
yes, maybe something like this
const virtualbox = require('virtualbox')({
logLevel: 0
// or
quite: true
});
@pharma4u-awahl Hi! the v1.1.0 release has fixed this issue. We opted to go for an interface based way of injecting a constructor so if you want to suppress log output you'll have to do the following:
const virtualbox = require('virtualbox').create({
log: function() {},
info: function() {},
debug: function() {},
})
Alternatively, you can pass in your own logger, so long as it has a method called info
, debug
, and log
. Hope this helps!
This would be great, to have a configuration option to suppress any logger output. 🥰
You're using an old
log4js
version, this makes it hard to set thelogLvele()
within peerDependencies.I like this module!