Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can redirect all <code>NSLog()</code> output to nowhere (or to a file other than the console log) or make it call your own logging output function (not officially but it works), however this will act on all <code>NSLog()</code> calls, not only on calls from this Google Plugin, also on calls from within your code. If your app is single threaded, you may get a way with your own logging function checking a global <code>BOOL</code> whether logging is currently enabled or disabled; yet in a multi-threaded environment, you would have to control that per thread (and if you use GCD you are multi-threaded even if you don't deal with threads yourself), which is also possible, albeit a bit more extra code. </p> <p>So the question is, is it a useable to solution for you to disable logging globally (or for the current thread), make your plugin call and then turn it back on again? Of course, disabling per thread will not work if the plugin is multi-threaded internally (it may switch threads without you noticing), but in that case the global switch would still work.</p> <p>Controlling only the <code>NSLog()</code> calls of a static library is not possible unless you are willing to "patch" this library (and you are allowed to do so without having Google sue you, of course). It would be possible for a dynamic library, but as you develop for iOS, you cannot use dynamic libraries.</p> <p>So let me know which of these possible solution suits your needs, if any, and I will see what I can do for you (e.g. update the answer and add some code or instructions).</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload