Created
June 7, 2020 05:59
-
-
Save thenishchalraj/634602dbebcda367b214a50961532fbb to your computer and use it in GitHub Desktop.
Basic code snippet for implementing HyperLogs using Kotlin in android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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. ;)