Log the request and response bodies for certain endpoints/handlers #2640
Unanswered
tomycastelli
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I am using Zerolog with the RequestLoggerWithConfig middleware, and I want to append to the same log the request and response bodies for certain handlers. I have tried using the provided BodyDump middleware but couldn't get it to append to the same log json produced by zerolog. Is there a way to do this?
This is the logging middleware:
Beta Was this translation helpful? Give feedback.
All reactions