1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-24 20:14:31 +02:00

#410, actually timestamp.

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2016-03-18 20:29:53 -07:00
parent 4d30b193ad
commit abf389f91a

View File

@ -73,7 +73,7 @@ func LoggerFromConfig(config LoggerConfig) echo.MiddlewareFunc {
_, err = config.template.ExecuteFunc(output, func(w io.Writer, tag string) (int, error) {
switch tag {
case "time":
case "time_rfc3339":
return w.Write([]byte(time.Now().Format(time.Stamp)))
case "remote_ip":
return w.Write([]byte(remoteAddr))