mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
17 lines
221 B
Go
17 lines
221 B
Go
package main
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
"github.com/gogf/gf/v2/os/glog"
|
|
)
|
|
|
|
func main() {
|
|
err := g.Log().SetConfigWithMap(g.Map{
|
|
"prefix": "[TEST]",
|
|
})
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
glog.Info(1)
|
|
}
|