Objective-C Language Using __FUNCTION __


Example

NSLog(@"%s %@",__FUNCTION__, @"etc etc");

Inserts the class and method name into the output:

2016-07-22 12:51:30.099 loggingExample[18132:2971471] -[ViewController viewDidLoad] etc etc