Capture stdout into String


#1

Is there any way to capture the stdout from my app?

It is for debugging purposes, I use my own plugin host (made with juce), and I like to capture the plugin/s juce DBG("") output into my app/host, something like a debugging console.
Thanks


#2

check the Logger class and example on introjucer;

it does exactly that, you can add messages to log and it gets printed to stdout and written to file…


#3

Thanks Carlos!