Created
September 3, 2019 07:09
-
-
Save sudhirkhanger/b4b3813c67387354a5668e4da61d2ac2 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
class CustomDebugTree : Timber.DebugTree() { | |
override fun createStackElementTag(element: StackTraceElement): String? { | |
return "(${element.fileName}:${element.lineNumber}) # ${element.methodName}" | |
} | |
} | |
private void initTimber() { | |
if (BuildConfig.DEBUG) | |
Timber.plant(new CustomDebugTree()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment