From 4d4c4aebca915952e5639208e0ccf7f8c04126b9 Mon Sep 17 00:00:00 2001 From: snowykami Date: Wed, 2 Oct 2024 07:55:12 +0800 Subject: [PATCH] :sparkles: first comm --- log/init.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/log/init.go b/log/init.go index e919b07..6cc9a6f 100644 --- a/log/init.go +++ b/log/init.go @@ -80,6 +80,8 @@ func (f *LiteyukiFormatter) Format(entry *logrus.Entry) ([]byte, error) { } levelText := Color(color, "["+logLevel+"]") // 格式化日志信息并添加颜色 + // 去除message两端的【】 + message = message[1 : len(message)-1] b.WriteString(fmt.Sprintf("%s %s %s\n", timeText, levelText, message)) return b.Bytes(), nil }