Sometimes it can be hard to figure out where log statements in the console come from. With this tweak you get log output like this:
11:03:12.257 : User logged in with username: olegam (FIBAPIClient.m:507)
Because of AppCode awesomeness the FileName:LineNumber part will be clickable and take you right to the code that produced the log statement. To get this in your own project you should:
- Redefine NSLog in your prefix.pch file
#define NSLog(format,...) SHPLogFunction(format, [@""__FILE__ lastPathComponent], __LINE__, ##__VA_ARGS__);