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

     1  package main
     2  
     3  import (
     4  	"github.com/gogf/gf/frame/g"
     5  	"github.com/gogf/gf/os/gfile"
     6  )
     7  
     8  func main() {
     9  	path := "/tmp/glog-cat"
    10  	g.Log().SetPath(path)
    11  	g.Log().Stdout(false).Cat("cat1").Cat("cat2").Println("test")
    12  	list, err := gfile.ScanDir(path, "*", true)
    13  	g.Dump(err)
    14  	g.Dump(list)
    15  }