Cory Riddell schrieb: > What happens to osg::notify() messages when the application has no > console. For example, osgviewerMFC.exe. If you run it with > OSG_NOTIFY_LEVEL=DEBUG set, you still don't see any messages. Any idea > where they are going? Is there a way to specify a log file rather than > stdout / stderr for the notificaitons? > > cory
there's a simple possibility to redirect stderr and stdout to some other stream. In my application I use a stringstream which I process during idle times, but it could also be a file stream... some code excerpts: std::stringstream log_err; std::streambuf *save_cerr, *save_cout; // init: save_cerr = std::cerr.rdbuf(); save_cout = std::cout.rdbuf(); std::cerr.rdbuf(log_err.rdbuf()); std::cout.rdbuf(log_err.rdbuf()); ... // cleanup: std::cerr.rdbuf(save_err); std::cout.rdbuf(save_cout); regards Ralph _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

