1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-06-06 05:51:54 +00:00
This commit is contained in:
Newnius 2020-07-02 17:10:37 +08:00
parent 92c4a627ab
commit 34124bb423

View File

@ -342,7 +342,7 @@ func main() {
os.Mkdir(loggerDir, os.ModePerm)
}
t := time.Now()
file := t.Format("20060102.15:04:05") + ".log"
file := t.Format("20060102.15_04_05") + ".log"
f, err := os.OpenFile(loggerDir+file, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
defer f.Close()
if err != nil {