Outputting a BOOL in NSLog

Ever wanted to use NSLog in the iPhone SDK to see the value of a BOOL? Heck I have! “How do you do it”, you say? Just like this:

NSLog(@"BOOL =  %@\n", (boolVar ? @"YES" : @"NO"));

Then again, I don’t use NSLog anymore, I use DebugLog