title: Dynamically turning on NSLogs
body: <p>I am currently using the following DebugLog macro </p>
  
  <pre><code>#if defined(DEBUG) &amp;&amp; defined(useDebugLogs)
  #define DebugLog( s, ... ) NSLog( @"&lt;%s:(%d)&gt; %@", __PRETTY_FUNCTION__, __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )
  #else
  #define DebugLog( s, ... ) 
  #endif
  </code></pre>
  
  <p>However, now with test flight allowing remote logging this is a little dated. </p>
  
  <p>Basically what I want to do is add a switch in my settings.plist to allow the user to turn on remote logging. </p>
  
  <p>I've come across this tutorial
  <a href="http://jomnius.blogspot.com/2011/09/how-to-do-dynamic-debug-logging-in.html" rel="nofollow">http://jomnius.blogspot.com/2011/09/how-to-do-dynamic-debug-logging-in.html</a></p>
  
  <p>However, it's a very poor explanation and doesn't actually seem to work. </p>