diff --git a/src/logger.ts b/src/logger.ts index d30d28d..f385040 100644 --- a/src/logger.ts +++ b/src/logger.ts @@ -1,6 +1,10 @@ import * as winston from "winston" export const logger = winston.createLogger({ + format: winston.format.combine( + winston.format.timestamp({ format: "YYYY-MM-DD hh:mm:ss A" }), + winston.format.json() + ), levels: winston.config.syslog.levels, transports: [ new winston.transports.Console() ], })