Redirecting stdout to ofLog?


#1

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?

Arnaud


#2

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


#3

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

In theory this could be done for any loggerchannel.

Rg,

Arnaud