Closed YousefED closed 6 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.
@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.
exceptionToMeta
https://github.com/bithavoc/express-winston/releases/tag/v2.6.0
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.