Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagego
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)
	}
}

...