Skip to content

Is possible to customize the response format when using the RequestLoggerWithConfig middleware? #2383

Answered by aldas
chrislentz asked this question in Q&A
Discussion options

You must be logged in to vote

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 it

echo/echo.go

Line 389 in 08093a4

func (e *Echo) DefaultHTTPErrorHandler(err error, c Context) {

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chrislentz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants