update
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user