From 29d0cdf1f41bd81852b40857bd65eed1ad8d50ae Mon Sep 17 00:00:00 2001 From: xoy Date: Sat, 28 Jan 2023 22:04:25 +0100 Subject: [PATCH] fehlerbehebung --- func.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/func.go b/func.go index 9de5c20..0fc9c5b 100644 --- a/func.go +++ b/func.go @@ -9,8 +9,8 @@ import ( ) func logger(input string) { - println(input) - fileAddLine(input, "./log/"+time.Now().Format("2006-02-01")+".log") + println("[" + time.Now().Format("11:06:39.1234") + "] " + input) + fileAddLine("["+time.Now().Format("11:06:39.1234")+"] "+input, "./log/"+time.Now().Format("2006-02-01")+".log") } func handler() {