调整日志目录, gemini code assist会根据.gitignore屏蔽目录, 屏蔽logs/会导致infre/logs目录无法访问

This commit is contained in:
2025-09-12 11:52:18 +08:00
parent 5f4ce26b25
commit 5edf802593
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@@ -23,4 +23,4 @@ vendor/
.env
bin/
logs/
app_logs/

View File

@@ -13,7 +13,7 @@ log:
level: "info" # 日志级别: "debug", "info", "warn", "error", "dpanic", "panic", "fatal"
format: "console" # 日志格式: "console" 或 "json"
enable_file: true # 是否启用文件日志
file_path: "./logs/app.log" # 日志文件路径
file_path: "./app_logs/app.log" # 日志文件路径
max_size: 10 # 每个日志文件的最大尺寸 (MB)
max_backups: 5 # 保留的旧日志文件的最大数量
max_age: 30 # 保留的旧日志文件的最大天数