Skip to content

z2058550226/AndroidStudioTimber

Repository files navigation

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'

About

A more useful DebugTree than Timber.DebugTree

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages