Skip to content

Instantly share code, notes, and snippets.

@thenishchalraj
Created June 7, 2020 05:59
Show Gist options
  • Save thenishchalraj/634602dbebcda367b214a50961532fbb to your computer and use it in GitHub Desktop.
Save thenishchalraj/634602dbebcda367b214a50961532fbb to your computer and use it in GitHub Desktop.
Basic code snippet for implementing HyperLogs using Kotlin in android
HyperLog.initialize(this)
HyperLog.setLogLevel(Log.VERBOSE)
HyperLog.d("Test logs","Debug Log")
HyperLog.setURL("https://xxxxxxx0xxxxx.x.pipedream.net/")
HyperLog.pushLogs(this, false, object: HLCallback() {
override fun onSuccess(response: Any) {
//Handle success
}
override fun onError(Error: HLErrorResponse) {
//Handle errors
}
})
@thenishchalraj
Copy link
Author

The blog about how to use HyperLogs in Android using Kotlin, or I should say a complete documentation on the functions provided by the library is here or the HyperLogs github page is here where you can see the complete documentation. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment