update mysql log

This commit is contained in:
白茶清欢 2021-03-06 13:50:18 +08:00
parent cdf75b507b
commit 93d77d4d38
2 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,8 @@ func GetDatabaseClient(conf *DBConfig, logConf *LogConfig) (*gorm.DB, error) {
logConf.ConsoleOutput,
logConf.Encoder,
logConf.SplitConfig,
logConf.TraceFieldName); nil != err {
logConf.TraceFieldName,
logConf.Skip); nil != err {
return nil, CreateDBLogError(err)
}
return instance, nil

View File

@ -40,6 +40,7 @@ type LogConfig struct {
SplitConfig *logger.RotateLogConfig
ExtractFieldList []string
TraceFieldName string
Skip int
}
const (