Created
September 20, 2015 21:44
-
-
Save AdityaDeshmane/2d48fe39ae5e040f7226 to your computer and use it in GitHub Desktop.
iOS : Custom Logs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef DEBUG | |
#define DebugLog(fmt, ...) NSLog((@" < File:%@, Function:%s, Line:%d > :: " fmt),[[NSString stringWithUTF8String:__FILE__] lastPathComponent], __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); | |
#else | |
#define DebugLog(...) | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment