This library is intended to be used as a default null logger stand-in for javascript components that can optionally accept a bunyan logger.
import nullLogger from 'null-logger-light';
class Something {
constructor(logger = nullLogger) {
this.log = logger;
}
doSomething() {
const { log } = this;
log.info('nothing unless logger was supplied to constructor');
}
}