title: What is the 'export GST_DEBUG=<#>' equivalent for Android?
body: <p>On Linux systems I've used 'export GST_DEBUG=&lt;#>' to debug problems with a program's use of GStreamer.  I'm now working on Android and would like to do the same - see the GStreamer output included in the logcat output.</p>
  
  <p>I have a Google Nexus 5 phone and I'm using the full_hammerhead_userdebug build.  I've seen the following suggested:</p>
  
  <pre><code>Add the following in JNI_OnLoad:
  setenv("GST_DEBUG", "*:5", 1);
  setenv("GST_DEBUG_NO_COLOR", "1", 1);
  </code></pre>
  
  <p>Unfortunately I'm trying to debug a C library, so I would prefer to set something in the environment to enable the debug output.  I tried to add the following lines to build.prop:</p>
  
  <pre><code>export GST_DEBUG=3
  GST_DEBUG=3
  log.redirect-stdio=true
  </code></pre>
  
  <p>That didn't work.  Either I'm not enabling GST_DEBUG properly or I'm not redirecting it properly.  Or I'm way off track and I should be doing something else.  How can I enable GST_DEBUG with Android?</p>
  
  <p>P.S.  This question is similar to <a href="https://stackoverflow.com/questions/10876990/how-to-view-gstreamer-log-in-android">one</a>, but that one didn't completely answer my question.</p>