Skip to content

Commit

Permalink
Switched logger to JSON output
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenvermeulen committed Nov 23, 2023
1 parent f1f71a2 commit b4f65fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/logger.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import winston from "winston";
const { combine, errors, simple } = winston.format;
const { combine, errors, json } = winston.format;
export const logger = winston.createLogger({
level: "debug",
format: combine(errors({ stack: true }), simple()),
format: combine(errors({ stack: true }), json()),
transports: [new winston.transports.Console()],
});

0 comments on commit b4f65fe

Please sign in to comment.