openframeworks/openFrameworks — pull request #854 by bilderbuchi (2011-12-24 12:25:12+00:00)
Title: Replace printf by ofLog

I replaced printf occurences by equivalent ofLog. The changes are quite simple, but please review before merging, I can't even test most of those changes.
Some occurences still remain, please advise how to proceed:

ofSystemUtils.cpp contains MacOS-only printfs (which I have no access to), and it's not clear to me which log levels would be appropriate for those.

ofTrueTypeFont and ofThread contain conditional printfs with bools `printVectorInfo` and `verbose`, respectively. This is obviously to manually enable logging, but if we replace the printfs with ofLog, it would be possible to not get logging output, even if those bools are true, depending on the log level.
So how should we treat that?
`OF_LOG_FATAL_ERROR` would ensure output if the bools are true, but sounds really too drastic for most of that output.
OTOH, leaving the printfs would ensure appropriate output, but it couldn't be managed/redirected like all other logging output, so that's not very consistent.

Please discuss, and I'll amend this PR.
Relevant issues are #833 and #294.