Files
gf/.example/os/glog/glog_debug.go

20 lines
281 B
Go

package main
import (
"time"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/os/gtimer"
)
func main() {
gtimer.SetTimeout(3*time.Second, func() {
glog.SetDebug(false)
})
for {
glog.Debug(gtime.Datetime())
time.Sleep(time.Second)
}
}