In my Spring application, I want to return the logs generated when processing the application as part of the response if a debug
request param is set to true
. How do I capture the logs specific to that request?
I have unique request IDs that are also being logged if that helps.