cout/cerr works too. Just make sure there is something to output to (CONFIG+=console).