When NSLog
is asked to print empty string, it omits the log completely.
NSString *name = @"";
NSLog(@"%@", name); // Resolves to @""
The above code will print nothing.
It is a good practice to prefix logs with labels:
NSString *name = @"";
NSLog(@"Name: %@", name); // Resolves to @"Name: "
The above code will print:
2016-07-21 14:20:28.623 App[87711:6153103] Name: