added time to request logger

This commit is contained in:
konrad 2017-12-01 12:34:24 +01:00 committed by kolaente
parent b0219e9052
commit 568928b157
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ func NewEcho() *echo.Echo {
// Logger
e.Use(middleware.LoggerWithConfig(middleware.LoggerConfig{
Format: "${time_rfc3339}: ${remote_ip} ${method} ${status} ${uri} - ${user_agent}\n",
Format: "${time_rfc3339}: ${remote_ip} ${method} ${status} ${uri} ${latency_human} - ${user_agent}\n",
}))
// Static Content