From c13acf9c4b29defd5d36d666925e024ca630073a Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Fri, 22 Nov 2019 21:51:47 +0200 Subject: [PATCH] Trying a different logging format... --- logging.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging.go b/logging.go index afeb2e2..d90e9e7 100644 --- a/logging.go +++ b/logging.go @@ -16,7 +16,7 @@ type LogEntry struct { func writeLogEntry(fp *os.File, entry LogEntry) { var line string - line = "[" + entry.Time.Format(time.UnixDate)+ "]" + line = entry.Time.Format(time.RFC3339) line += "\t" + strconv.Itoa(entry.Status) line += "\t" + entry.RemoteAddr.String() line += "\t" + entry.RequestURL