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

     1  package main
     2  
     3  import (
     4  	"github.com/gogf/gf/frame/g"
     5  )
     6  
     7  func main() {
     8  	g.Log().Line().Debug("this is the short file name with its line number")
     9  	g.Log().Line(true).Debug("lone file name with line number")
    10  }