Skip to content

Instantly share code, notes, and snippets.

@PondThaitay
Last active February 7, 2017 13:49
Show Gist options
  • Save PondThaitay/4680ac983ecdce4b39a5c1ce780e3353 to your computer and use it in GitHub Desktop.
Save PondThaitay/4680ac983ecdce4b39a5c1ce780e3353 to your computer and use it in GitHub Desktop.
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
if (BuildConfig.DEBUG) {
Timber.plant(new Timber.DebugTree(){
@Override
protected String createStackElementTag(StackTraceElement element) {
return super.createStackElementTag(element) + " : "
+ element.getMethodName()+ "\t"
+ element.getLineNumber();
}
});
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment