extrace log config

This commit is contained in:
kongfei 2022-06-01 18:15:23 +08:00
parent f840ffdc48
commit c4172debf5
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,10 @@ func LoadConfigs(configDir string, configPtr interface{}) error {
}
for _, fpath := range files {
// logs.toml 单独解析
if fpath == "logs.toml" {
continue
}
if strings.HasSuffix(fpath, "toml") {
loaders = append(loaders, &multiconfig.TOMLLoader{Path: path.Join(configDir, fpath)})
}