fix logger bug
This commit is contained in:
parent
5584757ff4
commit
3038c6c22c
10
conf/new.go
10
conf/new.go
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue