Forked from PondThaitay/MyApplication.class(Timber Config)
Created
February 7, 2017 13:49
-
-
Save jedsada-gh/4146bc9df5def2f4c200da4589a9c0f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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