mirror of
https://github.com/labstack/echo.git
synced 2025-04-21 12:17:04 +02:00
Fixed build
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
ef1d00349e
commit
6b55156cb6
@ -48,7 +48,9 @@ type (
|
|||||||
var (
|
var (
|
||||||
// DefaultLoggerConfig is the default logger middleware config.
|
// DefaultLoggerConfig is the default logger middleware config.
|
||||||
DefaultLoggerConfig = LoggerConfig{
|
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(),
|
color: color.New(),
|
||||||
Output: os.Stdout,
|
Output: os.Stdout,
|
||||||
}
|
}
|
||||||
|
@ -56,6 +56,10 @@ func (r *Request) Header() engine.Header {
|
|||||||
return r.header
|
return r.header
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (r *Request) Referer() string {
|
||||||
|
return r.request.Referer()
|
||||||
|
}
|
||||||
|
|
||||||
// func Proto() string {
|
// func Proto() string {
|
||||||
// return r.request.Proto()
|
// return r.request.Proto()
|
||||||
// }
|
// }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user