From 5350bc324b5e75ab605123ba2489eb79d495a697 Mon Sep 17 00:00:00 2001 From: Luca Armaroli Date: Sat, 5 Sep 2020 12:42:00 +0200 Subject: [PATCH] added debug logging --- src/Logger.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Logger.ts b/src/Logger.ts index 7380ae6..2f0d9ce 100644 --- a/src/Logger.ts +++ b/src/Logger.ts @@ -35,6 +35,9 @@ function customPrint (info: winston.Logform.TransformableInfo): string { else if (info.level === 'verbose') { return colors.cyan('\n[VERBOSE] ') + info.message; } + else if (info.level === 'debug') { + return colors.magenta('\n[debug] ') + info.message; + } return `${info.level}: ${info.message} - ${info.timestamp}`; }