From d45de036a3c8949904561f02f208c80df6f3fd8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Kut=C3=A1=C4=8D?= Date: Tue, 9 Mar 2021 07:10:27 +0100 Subject: [PATCH] feat: trace log level color with gray, same as debug (#7) --- formatter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formatter.go b/formatter.go index 8defcb8..4034b69 100644 --- a/formatter.go +++ b/formatter.go @@ -204,7 +204,7 @@ const ( func getColorByLevel(level logrus.Level) int { switch level { - case logrus.DebugLevel: + case logrus.DebugLevel, logrus.TraceLevel: return colorGray case logrus.WarnLevel: return colorYellow