0

How do I append spring boot's console output to a string builder?

I already have a StringBuilder variable, in which I would like to append the console output and still log to console.

Bsquare ℬℬ
  • 4,423
  • 11
  • 24
  • 44
Wafula Samuel
  • 530
  • 1
  • 8
  • 25
  • I have come across this question and found a good explanation on [link](https://stackoverflow.com/questions/8708342/redirect-console-output-to-string-in-java). – abj1305 Nov 12 '18 at 10:09
  • Thanks for that @abhijeetsakhalkar. I had googled around but wasn't lucky – Wafula Samuel Nov 12 '18 at 10:59

0 Answers0