Showing posts with label NSLog. Show all posts
Showing posts with label NSLog. Show all posts

NSLog Macro

//You can use this macro for logging. Switch easly logging on or logging off


BOOL loggingEnabled=YES;


#if !defined(DLog)

#define DLog(fmt, ...) if (loggingEnabled) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);

#endif