--
You received this message because you are subscribed to the Google Groups "CocoaLumberjack" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cocoalumberjack/-/mqoMPvF6gisJ.
To post to this group, send email to cocoalu...@googlegroups.com.
To unsubscribe from this group, send email to cocoalumberja...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cocoalumberjack?hl=en.
When you compile with optimizations enabled (as is the case for release builds), disabled log statements are completely stripped from your build.That is, if you have a verbose log statement, and your log level set to warnings, that verbose log statement will not incur any cost at runtime. This is because the DDLogVerbose macro is essentially turned into this:if (ddLogLevel & LOG_FLAG_VERBOSE) { ... }Since ddLogLevel is const, and the flag is also constant, the compiler will check the if statement, and strip it if false.-Robbie HansonSent from my iPhone
I reviewed the source, but wanted to verify...There doesn't appear to be a setting that would allow me to completely compile out some or all of the logs if desired?True?MDJ--
You received this message because you are subscribed to the Google Groups "CocoaLumberjack" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cocoalumberjack/-/mqoMPvF6gisJ.
To post to this group, send email to cocoalumberjack@googlegroups.com.
To unsubscribe from this group, send email to cocoalumberjack+unsubscribe@googlegroups.com.