mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
parent
4d30b193ad
commit
abf389f91a
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user