title: Get all the logs as HTTP response in Spring Boot
body: <p>I am trying to build a utility method wherein passing a query param like "debug=true" with any HTTP API of my service will give me all the log statements printed by the application as HTTP response.</p>
  
  <p>My application is running on Spring Boot. Can someone help me with it?</p>