nest-winston icon indicating copy to clipboard operation
nest-winston copied to clipboard

Log unhandled exceptions in readable form

Open Motard opened this issue 1 year ago • 1 comments

There is a config option in Winston, called humanReadableUnhandledException. How can we use this in nest-winston?

Motard avatar Sep 09 '22 10:09 Motard

You should able to do that. Types are imported directly from the winston package and module options are passed directly to the createLogger() function.

Since winston package is a peer dependency you should able to install the correct version that has the humanReadableUnhandledException option added!

gremo avatar Sep 14 '22 14:09 gremo