{"id":26678328,"url":"https://github.com/telexintegrations/telex-android-logger","last_synced_at":"2025-03-26T05:15:29.024Z","repository":{"id":278897545,"uuid":"937088028","full_name":"telexintegrations/telex-android-logger","owner":"telexintegrations","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-22T11:10:30.000Z","size":109,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-22T12:19:52.313Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/telexintegrations.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-22T09:58:54.000Z","updated_at":"2025-02-22T11:10:34.000Z","dependencies_parsed_at":"2025-02-22T12:19:55.030Z","dependency_job_id":null,"html_url":"https://github.com/telexintegrations/telex-android-logger","commit_stats":null,"previous_names":["telexintegrations/telex-android-logger"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Ftelex-android-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Ftelex-android-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Ftelex-android-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Ftelex-android-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/telexintegrations","download_url":"https://codeload.github.com/telexintegrations/telex-android-logger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245591532,"owners_count":20640692,"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","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":[],"created_at":"2025-03-26T05:15:28.509Z","updated_at":"2025-03-26T05:15:29.016Z","avatar_url":"https://github.com/telexintegrations.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Telex Error Handler\nAn Android library for handling and logging errors to Telex channels.\n### Installation\n\n- Add JitPack repository to your build file:\n```bash\nrepositories {\n    maven { url 'https://jitpack.io' }\n}\n```\n- Add the dependency:\n  ```bash\n  dependencies {\n    implementation ''com.github.telexintegrations:telex-android-logger:1.0.0''}```\n- Initialize Yor application class:\n```bash\n    class MyApp : Application() {\n        override fun onCreate() {\n            super.onCreate()\n            ExceptionLogger.initialize(\n                apiUrl = \"your_telex_webhook_url\",\n                username = \"default_user\"\n            )\n        }\n    }\n```\n\n- Log execptions\n    ```bash\n    // Global exception handling is enabled by default\n    \n    // Manual exception logging\n    try {\n        // Your code\n    } catch (e: Exception) {\n        ExceptionLogger.logException(e)}// Logging with context\n    try {\n    // Your code} catch (e: Exception) {\n    ExceptionLogger.logException(\n        exception = e,\n        source = \"PaymentProcessor\",\n        method = \"processPayment\",\n        additionalInfo = mapOf(\n            \"userId\" to \"123\",\n            \"amount\" to \"100.00\"\n        )\n    )}```\n- Logging with additional context\n```bash\nclass PaymentProcessor {\n    fun processPayment(amount: Double, userId: String) {\n        try {\n            // Payment processing code\n        } catch (e: Exception) {\n            ExceptionLogger.logException(\n                exception = e,\n                source = \"PaymentProcessor\",\n                method = \"processPayment\",\n                additionalInfo = mapOf(\n                    \"amount\" to amount,\n                    \"userId\" to userId,\n                    \"timestamp\" to System.currentTimeMillis()\n                )\n            )\n        }\n    }\n}\n```\n\n- Grant Internet Permission in Android Manifes\n  ```bash\n      \u003cmanifest xlmns:android...\u003e\n     ...\n     \u003cuses-permission android:name=\"android.permission.INTERNET\" /\u003e\n     \u003capplication ...\n    \u003c/manifest\u003e\n  ```\n\n\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelexintegrations%2Ftelex-android-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftelexintegrations%2Ftelex-android-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelexintegrations%2Ftelex-android-logger/lists"}