Winston@3 verror format
Winston@3 verror full stack trace, with all nested errors recursively reported as caused by:
+ err.stack
.
Install
npm install winston-verror-format
Usage TypeScript
;;; ; logger.errornew VErrornew Error"Error #1", "Unexpected error";
Usage JavaScript
const createLogger format transports = ;const verrorFormat = ;const VError = ; const logger = ; logger;
API
verrorFormat(options)
options
Configuration object.
Type: VErrorFormatOptions
options.stack
Save full stack trace as meta stack
.
Type: boolean
Default: false