trentm/node-bunyan

Error.toJSON()

mfulton26 opened this issue · 0 comments

Some errors implement toJSON() (e.g. axios 0.19.0+). It would be great if bunyan's standard serializers would use toJSON() on an error if available.