update gorm logger
This commit is contained in:
parent
c4b4c68394
commit
f0e03d6910
@ -29,7 +29,7 @@ import (
|
|||||||
// Author : go_developer@163.com<白茶清欢>
|
// Author : go_developer@163.com<白茶清欢>
|
||||||
//
|
//
|
||||||
// Date : 9:56 下午 2021/3/1
|
// 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()}
|
logConfList := []logger2.SetLoggerOptionFunc{logger2.WithEncoder(encoder), logger2.WithCallerSkip(skip), logger2.WithCaller()}
|
||||||
if consoleOutput {
|
if consoleOutput {
|
||||||
logConfList = append(logConfList, logger2.WithConsoleOutput())
|
logConfList = append(logConfList, logger2.WithConsoleOutput())
|
||||||
|
Loading…
Reference in New Issue
Block a user