Skip to content

Commit

Permalink
Prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusd committed Apr 6, 2021
1 parent 69432a0 commit ba4ed69
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions app/main_dev/logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,17 @@ export function createLogger(debug) {
});

if (debug) {
logger.add(new winston.transports.Console({
level: "debug",
format: combine(
timestamp({ format: logTimestamp }),
splat(),
printf(logFormatter),
colorize({ all: true })
)
}));
logger.add(
new winston.transports.Console({
level: "debug",
format: combine(
timestamp({ format: logTimestamp }),
splat(),
printf(logFormatter),
colorize({ all: true })
)
})
);
}

return logger;
Expand Down

0 comments on commit ba4ed69

Please sign in to comment.