From 2ee651f6d5612cdec35f6e5f8d9d5ff7c66b7ec4 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 19 四月 2024 16:57:09 +0800
Subject: [PATCH] 更改接口前置

---
 core/internal/file_rotatelogs.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/internal/file_rotatelogs.go b/core/internal/file_rotatelogs.go
index cde97b9..dfd87d0 100644
--- a/core/internal/file_rotatelogs.go
+++ b/core/internal/file_rotatelogs.go
@@ -1,11 +1,11 @@
 package internal
 
 import (
-	"github.com/flipped-aurora/gin-vue-admin/server/global"
 	rotatelogs "github.com/lestrrat-go/file-rotatelogs"
 	"go.uber.org/zap/zapcore"
 	"os"
 	"path"
+	"srm/global"
 	"time"
 )
 
@@ -17,7 +17,7 @@
 // Author [SliverHorn](https://github.com/SliverHorn)
 func (r *fileRotatelogs) GetWriteSyncer(level string) (zapcore.WriteSyncer, error) {
 	fileWriter, err := rotatelogs.New(
-		path.Join(global.GVA_CONFIG.Zap.Director, "%Y-%m-%d", level+".log"),
+		path.Join(global.GVA_CONFIG.Zap.Director, level+".log"),
 		rotatelogs.WithClock(rotatelogs.Local),
 		rotatelogs.WithMaxAge(time.Duration(global.GVA_CONFIG.Zap.MaxAge)*24*time.Hour), // 鏃ュ織鐣欏瓨鏃堕棿
 		rotatelogs.WithRotationTime(time.Hour*24),

--
Gitblit v1.8.0