fehlerbehebung

This commit is contained in:
xoy 2023-01-29 16:18:52 +01:00
parent 63212b9e89
commit 8c91566b09
1 changed files with 6 additions and 2 deletions

View File

@ -1,9 +1,13 @@
package main
import "time"
import (
"os"
"time"
)
func logger(input string) {
fileCreateDir("./log")
err := os.Mkdir("./log", 0755)
errorPanic(err)
println("[" + time.Now().Format("15:04:05") + "] " + input)
fileAddLine("["+time.Now().Format("15:04:05")+"] "+input, "./log/"+time.Now().Format("2006-02-01")+".log")
}