github.com/gogf/gf@v1.16.9/.example/os/glog/glog_level_prefix.go (about)

     1  package main
     2  
     3  import (
     4  	"github.com/gogf/gf/frame/g"
     5  	"github.com/gogf/gf/os/glog"
     6  )
     7  
     8  func main() {
     9  	g.Log().SetLevelPrefix(glog.LEVEL_DEBU, "debug")
    10  	g.Log().Debug("test")
    11  }