1
0
mirror of https://github.com/labstack/echo.git synced 2025-02-15 13:53:06 +02:00

Fixed build

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2016-05-09 19:19:53 -07:00
parent ef1d00349e
commit 6b55156cb6
2 changed files with 7 additions and 1 deletions

View File

@ -48,7 +48,9 @@ type (
var (
// DefaultLoggerConfig is the default logger middleware config.
DefaultLoggerConfig = LoggerConfig{
Format: `{"time": "${time_rfc3339}", "remote_ip": "${remote_ip}", "method": "${method}", "uri": "${uri}", "status": ${status}, "took": "${response_time}", "sent": "${response_size}B"}`,
Format: `{"time": "${time_rfc3339}", "remote_ip": "${remote_ip}", ` +
`"method": "${method}", "uri": "${uri}", "status": ${status}, ` +
`"latency": "${response_time}", "served": "${response_size}B"}` + "\n",
color: color.New(),
Output: os.Stdout,
}

View File

@ -56,6 +56,10 @@ func (r *Request) Header() engine.Header {
return r.header
}
func (r *Request) Referer() string {
return r.request.Referer()
}
// func Proto() string {
// return r.request.Proto()
// }