fix logger bug

This commit is contained in:
yanweidong 2025-10-04 18:22:19 +08:00
parent 5584757ff4
commit 3038c6c22c
1 changed files with 5 additions and 5 deletions

View File

@ -111,11 +111,11 @@ func InitLoggerConf(cfg *LogConf) *LogConf {
return &LogConf{ return &LogConf{
Name: strings.ToLower(vars.ServiceKey), Name: strings.ToLower(vars.ServiceKey),
Level: vars.LogLevel(vars.DEBUG), Level: vars.LogLevel(vars.DEBUG),
Dir: cfg.Dir, Dir: "./logs/",
Endpoint: cfg.Endpoint, Endpoint: "",
Console: cfg.Console, Console: true,
File: cfg.File, File: true,
Remote: cfg.Remote, Remote: false,
} }
} }
return cfg return cfg