Skip to content

loggysh/loggy-android

Repository files navigation

loggy-android

Android Client for Loggy

Publish Loggy Android to Maven (Sonatype - Nexus)

./gradlew publish --no-daemon --no-parallel
./gradlew closeAndReleaseRepository

Install Loggy library in build.gradle Search Maven For Latest Version

    implementation 'sh.loggy:loggy:<version>'

Setup in MainApplication onCreate

    override fun onCreate() {
        Loggy.setup(
                this@MainApplication,
                "<api-key>",
            )
    }

Send Logs

    Loggy.log(priority, tag, message, t)

Send logs using Timber Tree

    class LoggyTree() : Timber.Tree() {
        override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
            Loggy.log(priority, tag, message, t)
        }
    }

Plant TimberTree

Add this to application onCreate

     Timber.plant(LoggyTree())

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages