package main

import (
	"context"
	"github.com/gogf/gf/v2/frame/g"
)

func main() {
	l := g.Log()
	ctx := context.TODO()
	l.Info(ctx, "hello,world")

}

输出结果:

goframe框架学习之打印日志_开发语言