#ifdef DEBUG
# define DLog(s, …) NSLog((@”%s %s:%d ” s), __func__, basename(__FILE__), __LINE__, ## __VA_ARGS__);
#else
# define DLog(…) do {} while (0)
#endif
#define ALog(…) NSLog(__VA_ARGS__)
// get info/build/configuration debug/ other c flags/ -DDEBUG
Above is compilation of the Ideas and coments from http://www.cimgf.com/2009/01/24/dropping-nslog-in-release-builds/#more-411