Skip to content

Commit

Permalink
Feature - optionally include Error.cause property
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandra Tudor committed Apr 9, 2024
1 parent c63a5ad commit e0244e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/winston/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ class Logger extends Transform {

if (meta.message) info.message = `${info.message} ${meta.message}`;
if (meta.stack) info.stack = meta.stack;
if (meta.cause) info.cause = meta.cause;

this.write(info);
return this;
Expand Down

0 comments on commit e0244e0

Please sign in to comment.