I am developing an iphone application. I want log file name, method name and line number of the method while it is executing. I have used following code for getting the required values.
NSLog(@"Hi! I'm in method %s at %s:%u", __FUNCTION__, __FILE__, __LINE__);
But, I want to log the values dynamically without using NSLogs in code.
I have tried environment variable NSObjCMessageEnabled: YES
which gives only method names, but I want file name and line number as well. Please help.