Files
gf/.example/os/glog/glog_config1.go

17 lines
212 B
Go

package main
import (
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/os/glog"
)
func main() {
err := glog.SetConfigWithMap(g.Map{
"prefix": "[TEST]",
})
if err != nil {
panic(err)
}
glog.Info(1)
}