update
parent
811504c5d5
commit
1b026b8f2e
|
@ -106,7 +106,9 @@ func NewLogger(serverName string, config *Config) *ZapLog {
|
|||
}
|
||||
|
||||
func getRollingFileWriter(serverName string, config *Config) *lumberjack.Logger {
|
||||
//filePath := config.LogFilePath
|
||||
if config.LogFilePath == "" {
|
||||
config.LogFilePath = "logs"
|
||||
}
|
||||
|
||||
return &lumberjack.Logger{
|
||||
Filename: filepath.Join(config.LogFilePath, serverName+".log"),
|
||||
|
|
Loading…
Reference in New Issue