astree

An Timber log tree, support log to code navigation.

License

License

GroupId

GroupId

io.github.z2058550226
ArtifactId

ArtifactId

astree
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

aar
Description

Description

astree
An Timber log tree, support log to code navigation.
Project URL

Project URL

https://github.com/z2058550226/AndroidStudioTimber
Source Code Management

Source Code Management

https://github.com/z2058550226/AndroidStudioTimber

Download astree

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.z2058550226/astree/ -->
<dependency>
    <groupId>io.github.z2058550226</groupId>
    <artifactId>astree</artifactId>
    <version>1.0.1</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/io.github.z2058550226/astree/
implementation 'io.github.z2058550226:astree:1.0.1'
// https://jarcasting.com/artifacts/io.github.z2058550226/astree/
implementation ("io.github.z2058550226:astree:1.0.1")
'io.github.z2058550226:astree:aar:1.0.1'
<dependency org="io.github.z2058550226" name="astree" rev="1.0.1">
  <artifact name="astree" type="aar" />
</dependency>
@Grapes(
@Grab(group='io.github.z2058550226', module='astree', version='1.0.1')
)
libraryDependencies += "io.github.z2058550226" % "astree" % "1.0.1"
[io.github.z2058550226/astree "1.0.1"]

Dependencies

runtime (2)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk7 jar 1.4.32
com.jakewharton.timber : timber jar 4.7.1

Project Modules

There are no modules declared in this project.

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'

Versions

Version
1.0.1