| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2025-12-11 | 2.7 kB | |
| v4.14.0 source code.tar.gz | 2025-12-11 | 412.7 kB | |
| v4.14.0 source code.zip | 2025-12-11 | 461.5 kB | |
| Totals: 3 Items | 876.9 kB | 3 | |
middleware.Logger() has been deprecated. For request logging, use middleware.RequestLogger() or
middleware.RequestLoggerWithConfig().
middleware.RequestLogger() replaces middleware.Logger(), offering comparable configuration while relying on the
Go standard library’s new slog logger.
The previous default output format was JSON. The new default follows the standard slog logger settings.
To continue emitting request logs in JSON, configure slog accordingly:
:::go
slog.SetDefault(slog.New(slog.NewJSONHandler(os.Stdout, nil)))
e.Use(middleware.RequestLogger())
If you are developing anything more substantial than a demo, use middleware.RequestLoggerWithConfig()
Security
- Logger middleware json string escaping and deprecation by @aldas in https://github.com/labstack/echo/pull/2849
What's Changed
- Update deps by @aldas in https://github.com/labstack/echo/pull/2807
- refactor to use reflect.TypeFor by @cuiweixie in https://github.com/labstack/echo/pull/2812
- Use Go 1.25 in CI by @aldas in https://github.com/labstack/echo/pull/2810
- Modernize context.go by replacing interface{} with any by @vishr in https://github.com/labstack/echo/pull/2822
- Fix typo in SetParamValues comment by @vishr in https://github.com/labstack/echo/pull/2828
- Fix typo in ContextTimeout middleware comment by @vishr in https://github.com/labstack/echo/pull/2827
- Improve BasicAuth middleware: use strings.Cut and RFC compliance by @vishr in https://github.com/labstack/echo/pull/2825
- Fix duplicate plus operator in router backtracking logic by @yuya-morimoto in https://github.com/labstack/echo/pull/2832
- Replace custom private IP range check with built-in net.IP.IsPrivate by @kumapower17 in https://github.com/labstack/echo/pull/2835
- Ensure proxy connection is closed in proxyRaw function(#2837) by @kumapower17 in https://github.com/labstack/echo/pull/2838
- Update deps by @aldas in https://github.com/labstack/echo/pull/2843
- Logger middleware json string escaping and deprecation by @aldas in https://github.com/labstack/echo/pull/2849
- Update golang.org/x/* deps by @aldas in https://github.com/labstack/echo/pull/2850
- Changelog for 4.14.0 by @aldas in https://github.com/labstack/echo/pull/2851
New Contributors
- @cuiweixie made their first contribution in https://github.com/labstack/echo/pull/2812
- @yuya-morimoto made their first contribution in https://github.com/labstack/echo/pull/2832
- @kumapower17 made their first contribution in https://github.com/labstack/echo/pull/2835
Full Changelog: https://github.com/labstack/echo/compare/v4.13.4...v4.14.0