fehlerbehebung
This commit is contained in:
parent
63212b9e89
commit
8c91566b09
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue