diff --git a/src/common/Logger.ts b/src/common/Logger.ts index e7e9d1c..12b488c 100644 --- a/src/common/Logger.ts +++ b/src/common/Logger.ts @@ -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 {