Skip to content

Commit

Permalink
修改日志文件名称
Browse files Browse the repository at this point in the history
  • Loading branch information
RitterHou committed Jun 29, 2019
1 parent 58620c2 commit 3852f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 3852f0e

Please sign in to comment.