Any easy way to redirect CCLOG to an output file?

I use CCLOG all the time, and it’s great. I can pipe all output to a file, but what I’d like to do is modify one method to send all its output to a file. I guess I could just rewrite it to fprintf, but before I do (it’s a lot of stuff), I wanted to see if there’s any way to do this with CCLOG. I’ve looked at CCPlatformMacros.h, and I don’t see a way.

[never mind, easy enough to use fprintf, since this is a very short term, specific method I’m using so I can compare all sizes and offsets on 32-bit and 64-bit platforms]

or fstream can handle this:

fs << "hello, I am writing this text out to a file";
1 Like