...
Code Block | ||
---|---|---|
| ||
package main import ( "github.com/gogf/gf/osframe/glogg" "github.com/gogf/gf/os/gtime" "github.com/gogf/gf/os/gtimer" "time" ) func main() { gtimer.SetTimeout(3*time.Second, func() { glogg.Log().SetDebug(false) }) for { glogg.Log().Debug(gtime.Datetime()) time.Sleep(time.Second) } } |
...