feat(log): 在控制台输出日志

This commit is contained in:
2025-01-22 14:40:15 +08:00
parent ab65ee1991
commit a57e4cac1c
3 changed files with 7 additions and 3 deletions
+2
View File
@@ -6,6 +6,7 @@ import (
"github.com/suyiiyii/hertz101/app/user/biz/dal/query"
"github.com/suyiiyii/hertz101/common/mtl"
"net"
"os"
"time"
"github.com/cloudwego/kitex/pkg/klog"
@@ -75,5 +76,6 @@ func kitexInit() (opts []server.Option) {
server.RegisterShutdownHook(func() {
asyncWriter.Sync()
})
klog.SetOutput(os.Stdout)
return
}