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
}
});