Skip to content

Logging collector for Android.

Notifications You must be signed in to change notification settings

skoumalcz/teagger

Repository files navigation

Teagger

Logging to file made easy

Teagger helps you to keep your logs forever or ship them back to you instantly.

Usage

Create your instance with a file or stream:

class App: Application() {

    override fun onCreate() {
        Teagger.start(this) { withFile(getMyFile(context)) } 
    }

}

And use it:

fun logSomething() {
    Teagger.v("something") // gets scheduled to be written on disk
}

Use Timber integration:

Timber.plant(TeaggerTree())

Customize entries:

Teagger.instance.entryTransformer = object : LogEntryDelegate { /*...*/ }

Optionally display UI:

<application>
    <activity android:name="com.skoumal.teagger.ui.LoggerActivity" />
</application>

Don't forget to register a FileProvider!


Download

ext.teagger =

dependencies {
    implementation "com.skoumal:teagger:${ext.teagger}"
}

About

Logging collector for Android.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages