Using FUNCTION
suggest changeNSLog(@"%s %@", __PRETTY_FUNCTION__, @"etc etc");
__PRETTY_FUNCTION__ inserts the class and method name. __FUNCTION__ is only the C function name and would not include the class.
2016-07-22 12:51:30.099 loggingExample[18132:2971471] -[ViewController viewDidLoad] etc etc
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents