title: How to Enable Logging in Android programatically
body: <p>I am working on an Android Application where I need to display log information when I execute the .apk file in release mode based on some condition.
  It can be like below:</p>
  
  <pre><code>if(debug)
     display log inf.
  else
    normal execution
  </code></pre>
  
  <p>I will set this variable to true to enable debug mode to display log information.
  Can anyone help me in achieving this feature.</p>
  
  <p>Thanks In Advance.</p>