Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(opts) {
super({
objectMode: true,
highWaterMark: 0
});
opts = _.clone(opts || {});
opts.timestamp = false;
opts.levels = opts.levels || defaults.bunyanLevels;
this[$Logger] = new Logger(opts);
this[$Logger].on('error', err => this.emit(err));
}