chore(log): 更新日志配置和路径设置
- 修改日志文件夹名称从"log"到"logs" - 更新IDEA缓存中的文件修改时间戳 - 调整日志文件路径配置以使用新的目录结构main v1.0.1008
parent
d958f4c059
commit
2a7ab5f216
|
|
@ -241,7 +241,7 @@
|
|||
<entry key="file://$PROJECT_DIR$/log/log.go">
|
||||
<value>
|
||||
<ScannedPath>
|
||||
<option name="lastModified" value="1770011076335" />
|
||||
<option name="lastModified" value="1772420020488" />
|
||||
</ScannedPath>
|
||||
</value>
|
||||
</entry>
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue