feat : update config
This commit is contained in:
1 parent
2b92b100e3
commit
7e12e55b56
5 files changed
+36
-38
No files matched your search
@@ -6,15 +6,19 @@ type Logger struct {
|
||||
Path string
|
||||
Level string
|
||||
Stdout bool
|
||||
Enabled bool
|
||||
EnabledBUS bool
|
||||
EnabledREQ bool
|
||||
EnabledDB bool
|
||||
}
|
||||
|
||||
func InitLog(cfg *viper.Viper) *Logger {
|
||||
return &Logger{
|
||||
Path: cfg.GetString("path"),
|
||||
Level: cfg.GetString("level"),
|
||||
Enabled: cfg.GetBool("enabled"),
|
||||
Stdout: cfg.GetBool("stdout"),
|
||||
EnabledBUS: cfg.GetBool("enabledbus"),
|
||||
EnabledREQ: cfg.GetBool("enabledreq"),
|
||||
EnabledDB: cfg.GetBool("enableddb"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user