{"id":28263702,"url":"https://github.com/mazenrashed/logdna-android-client","last_synced_at":"2025-10-12T08:06:29.584Z","repository":{"id":123045873,"uuid":"172150932","full_name":"mazenrashed/LogDNA-Android-Client","owner":"mazenrashed","description":"Android client for LogDNA","archived":false,"fork":false,"pushed_at":"2019-12-22T09:47:24.000Z","size":173,"stargazers_count":22,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-18T07:45:33.604Z","etag":null,"topics":["android","client","library","log","logdna","logger","logging","logging-library","logs","sdk"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mazenrashed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-02-23T00:05:00.000Z","updated_at":"2021-09-11T12:01:34.000Z","dependencies_parsed_at":"2024-01-16T05:37:51.402Z","dependency_job_id":"9e799617-e01e-444f-a7cc-efc6977053b2","html_url":"https://github.com/mazenrashed/LogDNA-Android-Client","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mazenrashed/LogDNA-Android-Client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazenrashed%2FLogDNA-Android-Client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazenrashed%2FLogDNA-Android-Client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazenrashed%2FLogDNA-Android-Client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazenrashed%2FLogDNA-Android-Client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mazenrashed","download_url":"https://codeload.github.com/mazenrashed/LogDNA-Android-Client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazenrashed%2FLogDNA-Android-Client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010798,"owners_count":26084807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","client","library","log","logdna","logger","logging","logging-library","logs","sdk"],"created_at":"2025-05-20T08:11:55.772Z","updated_at":"2025-10-12T08:06:29.579Z","avatar_url":"https://github.com/mazenrashed.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# LogDNA-Android-Client\nAndroid client for LogDNA\n\n[![](https://jitpack.io/v/mazenrashed/LogDNA-Android-Client.svg)](https://jitpack.io/#mazenrashed/LogDNA-Android-Client)\n[![Android Arsenal]( https://img.shields.io/badge/Android%20Arsenal-Mazen%20Rashed-green.svg?style=flat )]( https://android-arsenal.com/details/1/7545 )\n\n###  Add the JitPack repository to your build file\n```groovy\nallprojects {\n\trepositories {\n\t\t...\n\t\tmaven { url 'https://jitpack.io' }\n\t}\n}\n```\n\n### Add dependency\n```groovy\ndependencies {\n\timplementation 'com.github.mazenrashed:LogDNA-Android-Client:${LAST_VERSION}'\n}\n```\n### Add permissions to manifest\n```groovy\n\u003cuses-permission android:name=\"android.permission.INTERNET\" /\u003e\n```\n### Initialize LogDNA\nShould be initialized once in `Application.onCreate()`:\n```kotlin\nLogDna.init(LOG_DNA_API_KEY, APP_NAME, HOST_NAME)\n```\n### Start Logging\n```kotlin\nLogDna.log(  \n        Line.Builder().setLine(\"Some Test\")  \n                .addCustomField(Line.CustomField(\"fName\", \"mazen\"))  \n                .addCustomField(Line.CustomField(\"lName\", \"rashed\"))  \n\t\t.addCustomField(Line.CustomField(\"age\", 25))\n                .setLevel(Line.LEVEL_DEBUG)  \n                .setTime(System.currentTimeMillis())  \n                .build()  \n)\n```\n\n## Listen to your logs\n\n### Using callback\n```kotlin\nLogDna.logResultsListener = { logResult -\u003e  \n  Log.d(\"LogDna\", \"${logResult.isSuccessful}, ${logResult.message}, ${logResult.logRequest.uid}\")  \n}\n```\n### Using RxJava / RxKotlin\n\n Add  **[RxRelay](https://github.com/JakeWharton/RxRelay)** dependency\n```groovy\ndependencies {\n\timplementation 'com.jakewharton.rxrelay2:rxrelay:2.1.0'\n}\n```\nThen subscribe to logResults\n```kotlin\nLogDna.logResults.subscribe {  logResult -\u003e\n  Log.d(\"LogDna\", \"${logResult.isSuccessful}, ${logResult.message}, ${logResult.logRequest.uid}\")  \n}\n```\n## Contributing\n\nWe welcome contributions to LogDNA Android Client !\n* ⇄ Pull requests and ★ Stars are always welcome.\n\n## Already used by :\n\n![Cat® App: Fleet Management](https://lh3.googleusercontent.com/yhpI5MrMIQI3A6tTlzTUG-lKbT6PVE3WyU1XJV3IFta51GGMFGG-52Zo2FxiMuLg9g=s180)\n### [Cat® App: Fleet Management](https://play.google.com/store/apps/details?id=com.cat.corelink\u0026hl=en_AU)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazenrashed%2Flogdna-android-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmazenrashed%2Flogdna-android-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazenrashed%2Flogdna-android-client/lists"}