NSLog Macro Mar 3rd, 2014 This is a useful marco for doing debug logging: 1 2 3 4 #define DLog(msg, ...) do { \ NSString *dLogString = [NSString stringWithFormat:@"%s: %@", __PRETTY_FUNCTION__, msg]; \ NSLog(@"%@", __VA_ARGS__); \ } while (0) Note the use of __PRETTY_FUNCTION__ Source