-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
Description
🔎 Search Terms
error, cause
The problem
Error.cause is still not logged even after #2447.

What version of Winston presents the issue?
v3.17.0
What version of Node are you using?
v20.18.1
If this worked in a previous version of Winston, which was it?
No response
Minimum Working Example
const winston = require('winston');
const { format, transports } = winston;
const log = winston.createLogger({
format: format.combine(format.errors({ cause: true }), format.json()),
transports: [new transports.Console()],
});
log.error(new Error("I'm an error", { cause: new Error('with a cause') }));
Additional information
No response
craig-feldman, HenriqueSilverio, Sleepful, codercms, bbenoist and 7 more