1
0
mirror of https://github.com/labstack/echo.git synced 2025-01-01 22:09:21 +02:00
Commit Graph

4 Commits

Author SHA1 Message Date
Martti T
8d4ac4c907
Additional configuration options for RequestLogger and Logger middleware ()
* Add `middleware.RequestLoggerConfig.HandleError` configuration option to handle error within middleware with global error handler thus setting response status code decided by error handler and not derived from error itself.
* Add `middleware.LoggerConfig.CustomTagFunc` so Logger middleware can add custom text to logged row.
2022-11-30 15:47:23 +02:00
Daniel Price
a9879ffa6b Middlewares should use errors.As() instead of type assertion on HTTPError
- Helps consumers who want to wrap HTTPError, and other use cases
2022-07-21 21:24:18 +03:00
Martti T
a2e6ca7ed6
Add start time to request logger middleware values () 2021-09-23 23:17:09 +03:00
Martti T
1e7e67cddb
Added request logger middleware which helps to use custom logger library for logging requests ()
Added request logger middleware which helps to use custom logger library for logging requests.
2021-09-14 20:57:47 +03:00