diff --git a/middleware/logger.go b/middleware/logger.go index 336eb582..8d86c83a 100644 --- a/middleware/logger.go +++ b/middleware/logger.go @@ -33,6 +33,7 @@ type ( // - host // - method // - path + // - proto // - referer // - user_agent // - status @@ -154,6 +155,8 @@ func LoggerWithConfig(config LoggerConfig) echo.MiddlewareFunc { p = "/" } return buf.WriteString(p) + case "proto": + return buf.WriteString(req.Proto) case "referer": return buf.WriteString(req.Referer()) case "user_agent":