gf/geg/os/glog/glog_pool.go
2019-04-03 00:03:46 +08:00

18 lines
296 B
Go

package main
import (
"github.com/gogf/gf/g/os/glog"
"github.com/gogf/gf/g/os/gtime"
"time"
)
// 测试删除日志文件是否会重建日志文件
func main() {
path := "/Users/john/Temp/test"
glog.SetPath(path)
for {
glog.Println(gtime.Now().String())
time.Sleep(time.Second)
}
}