|
|
@ -7,7 +7,7 @@ import (
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
var (
|
|
|
|
LoggerSetting *LoggerSettingS
|
|
|
|
loggerSetting *LoggerSettingS
|
|
|
|
loggerFileSetting *LoggerFileSettingS
|
|
|
|
loggerFileSetting *LoggerFileSettingS
|
|
|
|
loggerZincSetting *LoggerZincSettingS
|
|
|
|
loggerZincSetting *LoggerZincSettingS
|
|
|
|
loggerMeiliSetting *LoggerMeiliSettingS
|
|
|
|
loggerMeiliSetting *LoggerMeiliSettingS
|
|
|
@ -57,7 +57,7 @@ func setupSetting(suite []string, noDefault bool) error {
|
|
|
|
"BigCacheIndex": &BigCacheIndexSetting,
|
|
|
|
"BigCacheIndex": &BigCacheIndexSetting,
|
|
|
|
"Alipay": &AlipaySetting,
|
|
|
|
"Alipay": &AlipaySetting,
|
|
|
|
"SmsJuhe": &SmsJuheSetting,
|
|
|
|
"SmsJuhe": &SmsJuheSetting,
|
|
|
|
"Logger": &LoggerSetting,
|
|
|
|
"Logger": &loggerSetting,
|
|
|
|
"LoggerFile": &loggerFileSetting,
|
|
|
|
"LoggerFile": &loggerFileSetting,
|
|
|
|
"LoggerZinc": &loggerZincSetting,
|
|
|
|
"LoggerZinc": &loggerZincSetting,
|
|
|
|
"LoggerMeili": &loggerMeiliSetting,
|
|
|
|
"LoggerMeili": &loggerMeiliSetting,
|
|
|
@ -97,11 +97,7 @@ func Initialize(suite []string, noDefault bool) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
setupLogger()
|
|
|
|
setupLogger()
|
|
|
|
|
|
|
|
setupDBEngine()
|
|
|
|
err = setupDBEngine()
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
log.Fatalf("init.setupDBEngine err: %v", err)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Cfg get value by key if exist
|
|
|
|
// Cfg get value by key if exist
|
|
|
|