bithavoc / express-winston

express.js middleware for winstonjs
https://www.npmjs.com/package/express-winston
MIT License
798 stars 186 forks source link

Add raw error info to error log meta. #99

Closed rosston closed 8 years ago

rosston commented 8 years ago

Fixes #95.

Useful for errors that have more information than is covered by the message text and stack trace.

Basically, all error logs will have an error property containing the raw error object (without the stack property, since that's already on the top level of the log). An errorTransform can be passed to the error logger options to customize the object put on to the error property (e.g., for removing properties that should not be exposed in the logs).

rosston commented 8 years ago

Closed due to https://github.com/bithavoc/express-winston/issues/95#issuecomment-169778263