From f7375e9d746dcb161a01eaf68d7cb0863de1dfb2 Mon Sep 17 00:00:00 2001 From: GarbhanK Date: Sun, 26 May 2024 20:45:44 +0100 Subject: [PATCH] logrus text formatter --- main/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main/main.go b/main/main.go index e4f9308..f2fc6a6 100644 --- a/main/main.go +++ b/main/main.go @@ -12,6 +12,11 @@ import ( func init() { log.SetLevel(log.InfoLevel) + log.SetFormatter(&log.TextFormatter{ + DisableColors: false, + FullTimestamp: true, + }) + debugEnabled := gin.IsDebugging() if (!debugEnabled) {