Logsnag-Kotlin-Sdk

A lightweight sdk for logsnag

Easy setup

Add the sdk dependencies to your project

Add it in your root build.gradle at the end of repositories:

allprojects {
  repositories {
      maven { url 'https://jitpack.io' }
   }
}

Add the dependency to your project

dependencies {
  implementation 'com.github.realdm:Logsnag-Kotlin-Sdk:0.0.1'
}

initialize the SDK

Head to logsnag, create a new account and get an access token.

val sdk = LogSnagSdk.init("<add your token >")

Log the events

sdk.logEvent(
        Event(
            icon = "?",
            tags = null,
            notify = true,
            event = "<event_name>",
            project = "<your_project_name>",
            channel = "<your_channel_name>",
            description = "<event_description>"
        )
    )

GitHub

View Github