elastic / ecs-logging-nodejs

https://www.elastic.co/guide/en/ecs-logging/nodejs/master/intro.html
Apache License 2.0
68 stars 39 forks source link

feat(winston): improve serialization of Error instances #158

Closed trentm closed 10 months ago

trentm commented 10 months ago

This handles the various ways an Error instance can be passed to a Winston logger, and serializes those Errors to 'error.*' fields.

Closes: https://github.com/elastic/ecs-logging-nodejs/issues/128