Redirecting stdout to ofLog?


Has anybody succeeded in redirecting stdout to ofLog?

If you now use some ofLog implementation (ie some log window) it only captures ofLog messages but no printfs.

Reading through ofLog it doesn’t seem to capture stdout anywhere?



no ofLog only redirects it’s own calls not stdout, if you want to redirect stdout you would need to do it apart using some c or c++ call


I’ve created a PR for ofxImGui which add an option to capture stdout:

In theory this could be done for any loggerchannel.