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())