Skip to content

Instantly share code, notes, and snippets.

@sudhirkhanger
Created September 3, 2019 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sudhirkhanger/b4b3813c67387354a5668e4da61d2ac2 to your computer and use it in GitHub Desktop.
Save sudhirkhanger/b4b3813c67387354a5668e4da61d2ac2 to your computer and use it in GitHub Desktop.
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