Yavuz Yilmaz edited a comment on Bug AGIOS-12

#define NSLog(s,...)

this is what I use to disable logging. so I can think of a solution like this:

#ifdef NDEBUG
#define NSLog(s,...)
#endif

somewhere in Prefix.pch or in global includes file (not sure if DEBUG works for libs though).

edit: of course above solution overrides SDK function, which we may want to avoid. IMO something like this would be a better solution:

#ifdef DEBUG
#define AGLog NSLog
#else
#define AGLog(...)
#endif

then use AGLog alias for logging.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira