title: Android AppWidget Timber not logging
body: <p>I'm trying to switch from standard Log to Timber, in order to easily remove logging messages when deploying my app to Google Play, but it is not working</p>
  
  <p><strong>build.gradle</strong></p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 22
      buildToolsVersion "22.0.1"
  
      defaultConfig {
          applicationId "org.myapp"
          minSdkVersion 16
          targetSdkVersion 22
          versionCode 1
          versionName "1.0"
      }
  }
  
  buildscript {
      repositories {
          jcenter()
      }
  
      dependencies {
          classpath 'com.android.tools.build:gradle:1.1.3'
      }
  }
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      compile 'com.jakewharton.timber:timber:3.1.0'
  }
  </code></pre>
  
  <p><strong>MyApp.java</strong></p>
  
  <pre><code>package org.myapp;
  
  ...
  
  import timber.log.Timber;
  import static timber.log.Timber.DebugTree;
  
  public class MyApp extends AppWidgetProvider {
  
    @Override
    public void onEnabled(Context context) {
      super.onEnabled(context);
  
      if (MyBuildConfig.DEBUG) {
        Timber.plant(new DebugTree());
      } else {
        //Timber.plant(new CrashReportingTree());
      }
  
      Timber.d("MyApp.onEnabled");
    }
  </code></pre>
  
  <p><strong>MyBuildConfig.java</strong></p>
  
  <pre><code>package org.myapp;
  
  public class MyBuildConfig {
    public static final boolean DEBUG = true;
  }
  </code></pre>
  
  <p>The app compiles fine with</p>
  
  <pre><code>./gradlew assembleDebug
  </code></pre>
  
  <p>but when doing</p>
  
  <pre><code>adb logcat | grep -i thing
  </code></pre>
  
  <p>my debug statements are not there.</p>
  
  <p>I still would like to see debug messages with the debug apk but not with the release apk, what is wrong?</p>