It’s more convenient and will add to app performance to log some statements only in Debug mode and avoiding them in release mode.
Plus, we can see in debug console the function & line numbers being logged.
1 2 3 4 5 6 7
First add the following to the _Prefix.pch file in your Xcode project:
In the project’s Debug build configuration, set preprocessor macro DEBUG=1
DLog – log only in debug mode
ALog – log for both configurations (debug & release)