mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
修复ghttp.Server日志路径丢失问题
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,3 +14,4 @@ pkg/
|
||||
bin/
|
||||
cbuild
|
||||
*/.DS_Store
|
||||
.vscode/
|
||||
|
||||
@ -20,6 +20,7 @@ func (s *Server)SetLogPath(path string) {
|
||||
return
|
||||
}
|
||||
s.config.LogPath = path
|
||||
s.logger.SetPath(path)
|
||||
}
|
||||
|
||||
// 设置是否开启access log日志功能
|
||||
|
||||
Reference in New Issue
Block a user