refactor(logging): 统一使用自定义Loger替代g.Log()日志记录
This commit is contained in:
@@ -13,7 +13,7 @@ type BaseFuncClearLog struct {
|
||||
|
||||
// Func
|
||||
func (f *BaseFuncClearLog) Func(ctx g.Ctx, param string) (err error) {
|
||||
g.Log().Info(ctx, "清理日志 BaseFuncClearLog.Func", "param", param)
|
||||
cool.Loger.Info(ctx, "清理日志 BaseFuncClearLog.Func", "param", param)
|
||||
baseSysLogService := service.NewBaseSysLogService()
|
||||
if param == "true" {
|
||||
err = baseSysLogService.Clear(true)
|
||||
|
||||
Reference in New Issue
Block a user