From f0e03d6910d83e52c093be01ac2fb6b83c06fd7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Mon, 24 Jun 2024 18:20:26 +0800 Subject: [PATCH] update gorm logger --- wrapper/gorm_v2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrapper/gorm_v2.go b/wrapper/gorm_v2.go index 581f835..ec92a42 100644 --- a/wrapper/gorm_v2.go +++ b/wrapper/gorm_v2.go @@ -29,7 +29,7 @@ import ( // Author : go_developer@163.com<白茶清欢> // // Date : 9:56 下午 2021/3/1 -func NewGormV2(loggerLevel zapcore.Level, consoleOutput bool, encoder zapcore.Encoder, splitConfig *logger2.RotateLogConfig, traceIDField string, skip int) (logger.Interface, error) { +func NewGormV2(loggerLevel string, consoleOutput bool, encoder zapcore.Encoder, splitConfig *logger2.RotateLogConfig, traceIDField string, skip int) (logger.Interface, error) { logConfList := []logger2.SetLoggerOptionFunc{logger2.WithEncoder(encoder), logger2.WithCallerSkip(skip), logger2.WithCaller()} if consoleOutput { logConfList = append(logConfList, logger2.WithConsoleOutput())