bunyan-error-serializer

1.1.0 • Public • Published

bunyan-error-serializer

This is an enhanced version of bunyan.stdSerializer.err that serializes info from VError type errors, and cleans up the stack traces.

import err from 'bunyan-error-serializer';
bunyan.createLogger({
  ...
  serializers: {
    ...bunyan.stdSerializers,
    err
  }
});

Package Sidebar

Install

npm i bunyan-error-serializer

Weekly Downloads

380

Version

1.1.0

License

ISC

Unpacked Size

29.9 kB

Total Files

8

Last publish

Collaborators

  • pwmckenna