Skip to content

Commit

Permalink
Change logging format
Browse files Browse the repository at this point in the history
  • Loading branch information
danial303065 authored and MichaelKim20 committed Jul 1, 2024
1 parent 785bac9 commit a91e683
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/validator/src/common/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as winston from "winston";
const { combine, timestamp, printf, colorize } = winston.format;
// tslint:disable-next-line:no-shadowed-variable
const customFormat = printf(({ level, timestamp, message }) => {
return `${timestamp} ${level} ${message}`;
return `${level.toUpperCase()} [${timestamp}] ${message}`;
});

export class Logger {
Expand All @@ -13,7 +13,6 @@ export class Logger {
handleExceptions: true,
json: false,
format: combine(
colorize({ all: true }),
timestamp({
format: "YYYY-MM-DD HH:mm:ss",
}),
Expand Down

0 comments on commit a91e683

Please sign in to comment.