From c2535bfde5aa3bb0beeb0f8110b44868550e514e Mon Sep 17 00:00:00 2001 From: sunrise <575563079@qq.com> Date: Mon, 20 Mar 2023 12:20:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dzap=20=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E5=86=99=E5=85=A5error=20invalid=20argument?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- log/zap.go | 1 + 1 file changed, 1 insertion(+) diff --git a/log/zap.go b/log/zap.go index e65043b..6659290 100644 --- a/log/zap.go +++ b/log/zap.go @@ -43,6 +43,7 @@ func init() { filePath = filepath.ToSlash(filePath) if runtime.GOOS == "windows" { filePath = strings.ReplaceAll(filePath, "/", "\\") + filePath = strings.ReplaceAll(filePath, ":", "-") } //提前创建日志文件 logFile, err := os.Create(filePath)