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 75833e9 commit c840267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import winston from "winston";
const { combine, timestamp, printf, colorize } = winston.format;
// tslint:disable-next-line:no-shadowed-variable
const customFormat = printf(({ level, timestamp, validatorIndex, method, message }) => {
return `${timestamp} ${validatorIndex} ${level} ${message} ${method}`;
return `${level.toUpperCase()} [${timestamp}] ${validatorIndex.toString().padStart(3, "0")} ${message} ${method}`;
});

export class Logger {
Expand Down

0 comments on commit c840267

Please sign in to comment.