Replacement for NSLog that only logs in debug