JakeWharton/timber — pull request #19 by himanshuvirmani (2014-04-10 09:34:37+00:00)
Title: Added ErrorWarningTree similar to Debug tree for production builds.

This will help users to directly user Tinder jar for production builds too. Currently users have to implement Hollow tree for production build even if they are not using any crash reporting tool.

Now with my change user can easily add below code and are good to go without any extra implementation in Application class.

@Override
public void onCreate() {
super.onCreate();
setLogging();
}

private void setLogging() {
if (BuildConfig.DEBUG) {
Timber.plant(new DebugTree());
} else {
Timber.plant(new ErrorWarningTree());
}
}