Yes you can tie cout etc. to an ofstream IIRC. See the c++ stdlib documentation. If you use only the Irrlicht Logger, it's even easier:
- Write a class which inherits from IEventReceiver
- Then in OnEvent(const SEvent& Event), you need to test for Event.EventType == EET_LOG_TEXT_EVENT
- If your test is true, you'll find the string in Event.LogEvent.Text
Generated Documentation for BlindSide's irrNetLite. "When I heard birds chirping, I knew I didn't have much time left before my mind would go." - clinko
There are some caveats to that trick though. I know it won't work if the Irrlicht library and the user code link a different version of the C library (i.e., Irrlicht compiles with /MD and user code compiles with /MT or vice-versa). I think you might also run into troubles if running code that is a pure windows app, but I'm not certain about that.