pino-err-serializer
An improved error serializer for pino that not only logs the error type, message and stack but also other properties set on the error object.
Installation
$ npm install pino-err-serializer
Usage
const pino = ;const errSerializer = ; const logger = ; logger;
Tests
$ npm test
$ npm test-cov
to get coverage report
License
Released under the MIT License.