From 4811fbbbe528c77b9b448184d503258be8c4ba8d Mon Sep 17 00:00:00 2001 From: kingecg Date: Sun, 10 Dec 2023 00:40:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20format.go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- format.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.go b/format.go index 199f6f8..6f1cde3 100644 --- a/format.go +++ b/format.go @@ -9,7 +9,7 @@ const logTemplate = "[%s] %s : %s - %s\n" func format(logEvent LogEvent) string { data := logEvent.Ts.Format("2006-01-02 15:04:05") msg := fmt.Sprint(logEvent.Data...) - ret := fmt.Sprintf(logTemplate, data, logEvent.Category getLogLevelStr(logEvent.Level), msg) + ret := fmt.Sprintf(logTemplate, data, logEvent.Category, getLogLevelStr(logEvent.Level), msg) return ret }