From a7023cee3a1c33708b21729a0920d0b4a845ad7b Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Wed, 10 Jul 2013 13:52:10 -0400 Subject: [PATCH] format the time like httpd mod_config_log %t (time.RFC1123Z) --- httplog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplog.go b/httplog.go index e5896ae..7f77913 100644 --- a/httplog.go +++ b/httplog.go @@ -55,7 +55,7 @@ func LogRequest(r *http.Request, statusCode int) { fmt.Printf("%s - - [%s] \"%s %s\" \"%s\" %d %d\n", addr, - time.Now(), + time.Now().Format(time.RFC1123Z), r.Method, r.URL.String(), user_agent,