From 2a7ab5f216504a00083c42f8b34c4cd402f5aa42 Mon Sep 17 00:00:00 2001 From: black1552 Date: Mon, 2 Mar 2026 10:54:35 +0800 Subject: [PATCH] =?UTF-8?q?chore(log):=20=E6=9B=B4=E6=96=B0=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E9=85=8D=E7=BD=AE=E5=92=8C=E8=B7=AF=E5=BE=84=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改日志文件夹名称从"log"到"logs" - 更新IDEA缓存中的文件修改时间戳 - 调整日志文件路径配置以使用新的目录结构 --- .idea/GOHCache.xml | 2 +- log/log.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.idea/GOHCache.xml b/.idea/GOHCache.xml index 210beeb..c1ff035 100644 --- a/.idea/GOHCache.xml +++ b/.idea/GOHCache.xml @@ -241,7 +241,7 @@ - diff --git a/log/log.go b/log/log.go index fdf1c0e..4a8e8dd 100644 --- a/log/log.go +++ b/log/log.go @@ -19,7 +19,7 @@ var ( ) func init() { - logPath = gfile.Join(gfile.Pwd(), "log") + logPath = gfile.Join(gfile.Pwd(), "logs") filePath := gfile.Join(logPath, fmt.Sprintf("log-%s.log", gtime.Date())) fileLogger := &lumberjack.Logger{ Filename: filePath,