From 3852f0e9ae3243526bf72534463a13e412a0839d Mon Sep 17 00:00:00 2001 From: derobukal Date: Sun, 30 Jun 2019 00:21:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A5=E5=BF=97=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.go b/common.go index a90293d..ed404bb 100644 --- a/common.go +++ b/common.go @@ -176,7 +176,7 @@ func updateShortcut() { // 设置log的相关属性 func initLog() { - logFile, _ := os.OpenFile(path.Join(rootDir, "TimeAlert.log"), os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0644) + logFile, _ := os.OpenFile(path.Join(rootDir, "log.log"), os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0644) log.SetOutput(logFile) log.SetFlags(log.LstdFlags | log.Lshortfile) }