Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 832 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 832 Bytes

AndroidStudioTimber

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:

sample

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'