Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const g: void = logger.trace('foobar');
logger.trace({ err: new Error('type') }, 'messages');
const sf = logger.trace(new Error('ASDF'));
const t = logger.trace(new Error('asdf'));
const s = logger.trace({}, false);
const b: boolean = logger.trace();
logger.trace('foo', new Error('foo'));
// $ExpectError
const v: number = Bunyan.VERSION;
Bunyan.safeCycles()('true', false);
const consoleRawStream = new Bunyan.ConsoleRawStream()
// $ExpectError
consoleRawStream.write({ level: false })
// $ExpectError
logger.log()
// $ExpectError
logger.addSTream();
logger.trace({ err: new Error('foobar') }, 'error');
Bunyan.createLogger({
name: 'foo',
serializers: {
foo(data) {