Switch printf for NSLog.