From 5074e24e430af98d4812611ee96eebcd17adc53e Mon Sep 17 00:00:00 2001 From: donnie4w Date: Thu, 6 Jun 2024 12:30:38 +0800 Subject: [PATCH] Update logger.go --- logger/logger.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logger/logger.go b/logger/logger.go index f5f703c..9db27c2 100644 --- a/logger/logger.go +++ b/logger/logger.go @@ -41,7 +41,7 @@ const _DATEFORMAT_HOUR = "2006010215" const _DATEFORMAT_MONTH = "200601" const default_format = FORMAT_LEVELFLAG | FORMAT_SHORTFILENAME | FORMAT_DATE | FORMAT_TIME const default_level = LEVEL_ALL -const default_formatter = "{level} {time} {file}:{message}\n" +const default_formatter = "{level}{time} {file}:{message}\n" var static_mu = new(sync.Mutex) @@ -127,7 +127,7 @@ func SetLevel(level _LEVEL) *Logging { return static_lo.SetLevel(level) } -/*设置输出格式,默认: "{level} {time} {file}:{message}\n" */ +/*设置输出格式,默认: "{level}{time} {file}:{message}\n" */ func SetFormatter(formatter string) *Logging { return static_lo.SetFormatter(formatter) }