How can you suppress all entries in the Cocoa app?
Is there a way to force suppress all entries on the Mac OS X Cocoa app desktop?
Sometimes some part of the system or a plugin (which is outside your control) will log messages on behalf of your application to the console (system.log).
Is there a way to suppress all entries in your application?
+2
source to share
3 answers
You can use freopen to change where stdout and sterr point to:
http://www.opengroup.org/onlinepubs/000095399/functions/freopen.html
+4
source to share