增加默认日志文件路径与文件名
This commit is contained in:
@ -80,6 +80,10 @@ func SetWSServerLogEnable(logPath string, logFile string, logLevel zapcore.Level
|
||||
// 传入非法值,默认按小时切割日志
|
||||
splitInterval = DefaultLogSplitInterval
|
||||
}
|
||||
if len(logPath) == 0 {
|
||||
logPath = "./logs"
|
||||
}
|
||||
|
||||
wsc.LogEnable = true
|
||||
wsc.LogPath = logPath
|
||||
wsc.LogFile = logFile
|
||||
|
Reference in New Issue
Block a user