Skip to content

Commit

Permalink
Include full stack traces on Winston JSONL logs (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 committed Sep 23, 2021
1 parent 7d664ae commit 8d761bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/cml.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ const configureLogger = (level) => {
winston.format.colorize({ all: true }),
winston.format.simple()
)
: winston.format.json(),
: winston.format.combine(
winston.format.errors({ stack: true }),
winston.format.json()
),
transports: [
new winston.transports.Console({
handleExceptions: true,
Expand Down

0 comments on commit 8d761bf

Please sign in to comment.