Is possible to customize the response format when using the RequestLoggerWithConfig middleware? #2383
Answered
by
aldas
chrislentz
asked this question in
Q&A
|
I am using the Current: What I am trying to accomplish: |
Answered by
aldas
Feb 1, 2023
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 |
0 replies
Answer selected by
chrislentz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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.
RequestLoggerWithConfigdoes not implement anything related how logs are formatted/written - this is up to developer to decide.If this is about response - then check
e.HTTPErrorHandlerand default implementation for itecho/echo.go
Line 389 in 08093a4