Move logging to header file, to better support CocoaPods.