A more useful DebugTree
than Timber.DebugTree
This library has only one class named AndroidStudioTree
. It add a useful feature that is add a class name prefix to your log. The prefix is clickable like this:
In Application, you can simply replace the DebugTree
with AndroidStudioTree
like this:
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
...
if (BuildConfig.DEBUG) {
Timber.plant(AndroidStudioTree()) // orignal is Timber.plant(Timber.DebugTree())
}
...
}
}
Then you can use Timber with IDE navigation.
For gradle dependency:
implementation 'io.github.z2058550226:astree:1.0.1'