1
0
mirror of https://github.com/labstack/echo.git synced 2025-03-19 21:17:58 +02:00

add test case for logger middleware

This commit is contained in:
Kesus Kim 2018-06-29 14:25:53 +09:00 committed by Vishal Rana
parent 146100093e
commit 2a5460328f

View File

@ -92,7 +92,7 @@ func TestLoggerTemplate(t *testing.T) {
Format: `{"time":"${time_rfc3339_nano}","id":"${id}","remote_ip":"${remote_ip}","host":"${host}","user_agent":"${user_agent}",` +
`"method":"${method}","uri":"${uri}","status":${status}, "latency":${latency},` +
`"latency_human":"${latency_human}","bytes_in":${bytes_in}, "path":"${path}", "referer":"${referer}",` +
`"bytes_out":${bytes_out},"ch":"${header:X-Custom-Header}",` +
`"bytes_out":${bytes_out},"ch":"${header:X-Custom-Header}", "proto":"${proto}"` +
`"us":"${query:username}", "cf":"${form:username}", "session":"${cookie:session}"}` + "\n",
Output: buf,
}))