You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to use this feature with the default logger, simply call .rejections.handle() with a transport instance.
//// You can add a separate rejection logger by passing it to `.rejections.handle`//winston.rejections.handle(newwinston.transports.File({filename: 'path/to/rejections.log'}));
This probably was copied verbatim from the respective section on exception handling, but does not work. The winston object does not expose a .rejections property that's forwarded to defaultLogger.rejections, like it does for exceptions:
Also, a related issue, the LoggerOptions interface does not define a 'rejectionHandlers' field, though the Readme shows an example of passing a 'rejectionHandlers' option to 'createLogger'.
The docs claim:
This probably was copied verbatim from the respective section on exception handling, but does not work. The
winston
object does not expose a.rejections
property that's forwarded todefaultLogger.rejections
, like it does for exceptions:winston/lib/winston.js
Lines 128 to 137 in 80d3439
The text was updated successfully, but these errors were encountered: