Is possible to customize the response format when using the RequestLoggerWithConfig middleware? #2383
-
I am using the Current:
What I am trying to accomplish:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
These examples are little bit confusing - are you actually meaning the "row" that is logged by the logger or response that is sent to the client? I am asking this because these examples here look like responses. If this is about response - then check Line 389 in 08093a4 |
Beta Was this translation helpful? Give feedback.
These examples are little bit confusing - are you actually meaning the "row" that is logged by the logger or response that is sent to the client? I am asking this because these examples here look like responses.
RequestLoggerWithConfig
does not implement anything related how logs are formatted/written - this is up to developer to decide.If this is about response - then check
e.HTTPErrorHandler
and default implementation for itecho/echo.go
Line 389 in 08093a4