fehlerbehebung
This commit is contained in:
parent
e611561810
commit
5af7c13eed
|
@ -1,9 +1,13 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "time"
|
import (
|
||||||
|
"os"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
func logger(input string) {
|
func logger(input string) {
|
||||||
fileCreateDir("./log")
|
err := os.Mkdir("./log", 0755)
|
||||||
|
errorPanic(err)
|
||||||
println("[" + time.Now().Format("15:04:05") + "] " + input)
|
println("[" + time.Now().Format("15:04:05") + "] " + input)
|
||||||
fileAddLine("["+time.Now().Format("15:04:05")+"] "+input, "./log/"+time.Now().Format("2006-02-01")+".log")
|
fileAddLine("["+time.Now().Format("15:04:05")+"] "+input, "./log/"+time.Now().Format("2006-02-01")+".log")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue