format the time like httpd mod_config_log %t (time.RFC1123Z)
This commit is contained in:
parent
86164b6fee
commit
a7023cee3a
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ func LogRequest(r *http.Request, statusCode int) {
|
||||||
|
|
||||||
fmt.Printf("%s - - [%s] \"%s %s\" \"%s\" %d %d\n",
|
fmt.Printf("%s - - [%s] \"%s %s\" \"%s\" %d %d\n",
|
||||||
addr,
|
addr,
|
||||||
time.Now(),
|
time.Now().Format(time.RFC1123Z),
|
||||||
r.Method,
|
r.Method,
|
||||||
r.URL.String(),
|
r.URL.String(),
|
||||||
user_agent,
|
user_agent,
|
||||||
|
|
Loading…
Reference in a new issue