ajalt / timberkt

Easy Android logging with Kotlin and Timber
Apache License 2.0
205 stars 12 forks source link

Provide a proxy to timber.log.Timber.DebugTree #5

Closed JoshuaJamesOng closed 6 years ago

JoshuaJamesOng commented 6 years ago

If com.github.ajalt.timberkt.Timber is imported in the class you wish to plant the Timber.DebugTree, then you have to use a qualified import e.g. Timber.plant(timber.log.Timber.DebugTree()).

It would be nice if com.github.ajalt.timberkt.Timber contained a function to return timber.log.Timber.DebugTree so that the code could read Timber.plant(Timber.DebugTree()).

ajalt commented 6 years ago

Good suggestion, thanks! I added a function com.github.ajalt.timberkt.Timber.DebugTree() that will return a new instance of the tree. It's in version 1.4.0.