bithavoc / express-winston

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

exceptionToMeta #149

Closed YousefED closed 6 years ago

YousefED commented 7 years ago

I'd like to propose a user-defined function (which defaults to the current winston.exception.getAllInfo) to format an exception.

For example; we might not want all data by getAllInfo to be calculated (os load, etc.) when an exception occurs.

rosston commented 7 years ago

@YousefED Sorry, just finally looking at this. Thanks for contributing! I'm good with this idea/approach. In order to merge, I'd like to see tests and docs added for the exceptionToMeta option.

bithavoc commented 6 years ago

https://github.com/bithavoc/express-winston/releases/tag/v2.6.0