A lightweight sdk for logsnag
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'
}
Head to logsnag, create a new account and get an access token.
val sdk = LogSnagSdk.init("<add your token >")
sdk.logEvent(
Event(
icon = "🦄",
tags = null,
notify = true,
event = "<event_name>",
project = "<your_project_name>",
channel = "<your_channel_name>",
description = "<event_description>"
)
)