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
Error.cause is not logged correctly.
For reference. Error.cause was added to es2022.
This seems to have been fixed in logform @#winstonjs/logform#226, but not in winston.
What version of Winston presents the issue?
v3.13.0
What version of Node are you using?
v21.6.2
If this worked in a previous version of Winston, which was it?
No response
Minimum Working Example
constlog=winston.createLogger({format: format.combine(format.errors({cause: true}),format.json(),),transports: [newtransports.Console()],});log.error(newError("I'm an error",{cause: newError("with a cause")}));// {"cause":{},"level":"error","message":"I'm an error"}
Additional information
No response
The text was updated successfully, but these errors were encountered:
🔎 Search Terms
Error.cause, cause property
The problem
Error.cause is not logged correctly.
For reference. Error.cause was added to es2022.
This seems to have been fixed in logform @#winstonjs/logform#226, but not in winston.
What version of Winston presents the issue?
v3.13.0
What version of Node are you using?
v21.6.2
If this worked in a previous version of Winston, which was it?
No response
Minimum Working Example
Additional information
No response
The text was updated successfully, but these errors were encountered: