创建log文件夹 并且求改日志目录为log文件夹
This commit is contained in:
@@ -20,7 +20,7 @@ func InitLog() {
|
||||
}
|
||||
QMLog.Out = src
|
||||
QMLog.SetLevel(logrus.DebugLevel)
|
||||
apiLogPath := "api.log"
|
||||
apiLogPath := "./log/api.log"
|
||||
logWriter, err := rotatelogs.New(
|
||||
apiLogPath+".%Y-%m-%d-%H-%M.log",
|
||||
rotatelogs.WithLinkName(apiLogPath), // 生成软链,指向最新日志文件
|
||||
|
||||
Reference in New Issue
Block a user