refactor(logging): 统一使用自定义Loger替代g.Log()日志记录
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package demo
|
||||
|
||||
import (
|
||||
"blazing/cool"
|
||||
_ "blazing/modules/space/controller"
|
||||
_ "blazing/modules/space/middleware"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gctx"
|
||||
)
|
||||
|
||||
@@ -12,6 +12,6 @@ func init() {
|
||||
var (
|
||||
ctx = gctx.GetInitCtx()
|
||||
)
|
||||
g.Log().Debug(ctx, "module space init start ...")
|
||||
g.Log().Debug(ctx, "module space init finished ...")
|
||||
cool.Loger.Debug(ctx, "module space init start ...")
|
||||
cool.Loger.Debug(ctx, "module space init finished ...")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user