{"id":21743956,"url":"https://github.com/telefonica/android-logger","last_synced_at":"2025-07-19T19:34:08.350Z","repository":{"id":38612416,"uuid":"315578076","full_name":"Telefonica/android-logger","owner":"Telefonica","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-19T13:48:31.000Z","size":271,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":28,"default_branch":"main","last_synced_at":"2025-06-25T05:44:55.970Z","etag":null,"topics":["cdco","managed","org-cdo","srv-novum"],"latest_commit_sha":null,"homepage":"","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/Telefonica.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null}},"created_at":"2020-11-24T09:14:54.000Z","updated_at":"2025-05-19T13:47:10.000Z","dependencies_parsed_at":"2025-04-03T14:26:43.029Z","dependency_job_id":"480baca7-c84f-48f9-b1f4-6e4dffaff41e","html_url":"https://github.com/Telefonica/android-logger","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/Telefonica/android-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Telefonica%2Fandroid-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Telefonica%2Fandroid-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Telefonica%2Fandroid-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Telefonica%2Fandroid-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Telefonica","download_url":"https://codeload.github.com/Telefonica/android-logger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Telefonica%2Fandroid-logger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265998607,"owners_count":23862136,"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":["cdco","managed","org-cdo","srv-novum"],"created_at":"2024-11-26T07:09:31.571Z","updated_at":"2025-07-19T19:34:08.334Z","avatar_url":"https://github.com/Telefonica.png","language":"Kotlin","readme":"#  App Logger for Android\n\n[![Platform](https://img.shields.io/badge/Platform-Android-brightgreen)](https://github.com/Telefonica/android-logger)\n[![Version](https://maven-badges.herokuapp.com/maven-central/com.telefonica/androidlogger/badge.png)](https://search.maven.org/artifact/com.telefonica/androidlogger)\n[![Support](https://img.shields.io/badge/Support-%3E%3D%20Android%205.0-brightgreen)](https://github.com/Telefonica/android-logger)\n[![Kotlin version badge](https://img.shields.io/badge/kotlin-1.4-blue.svg)](https://kotlinlang.org/docs/reference/whatsnew14.html)\n\nApp Logger that allows app logs visualization, classification, filtering, sharing and recording from the application where it is included.\n\n## Installation\n\nInside the dependency block in the `build.gradle` of your application, add this line to add the library:\n\n```gradle\ndependencies {\n    ...\n    implementation 'com.telefonica:androidlogger:$version'\n    ...\n}\n```\n\nIn case you want to disable any logging on release versions (and avoid inclusion of any transitive libraries), we provide a no-op version that will do nothing, without the need of handling this from your app code:\n\n```gradle\ndependencies {\n    ...\n    debugImplementation 'com.telefonica:androidlogger:$version'\n    releaseImplementation 'com.telefonica:androidlogger-no-op:$version'\n    ...\n}\n```\n\n## Configuration\n\nTo initialize the logger, call `initAppLogger` in your Application's onCreate:\n\n```kotlin\nopen class MyApplication : Application() {\n\n    val categories: List\u003cLogCategory\u003e = listOf(\n        LogCategory(\n            name = \"UI\",\n            color = Color.parseColor(\"#28A745\"),\n            logTags = listOf(\n                \"MyActivity\",\n                \"MyFragment\",\n            )\n        ),\n        LogCategory(\n            name = \"Your Category\",\n            color = Color.parseColor(\"#17A2B8\"),\n            logTags = listOf(\n                \"MyStorage\",\n                \"MyApiClient\",\n            )\n        ),\n    )\n    \n    override fun onCreate() {\n        super.onCreate()\n        initAppLogger(applicationContext, LoggerGroup.values().flatMap(transformation))\n    }\n}\n```\n\nAnd use `log` to write a log entry:\n```kotlin\nlog(DEBUG, \"MyActivity\", \"onCreate happened\")\n```\n\nFinally, to open the logger activity, just get the intent calling `getLaunchIntent`\n```kotlin\nstartActivity(getLaunchIntent(context))\n```\n\n## Demo app\n\nThere is a demo app of the logger viewer window in this repository. To compile the app manually run the [App](app) module in Android Studio.\n\n## Contributing\n\nSee [CONTRIBUTING.md](./CONTRIBUTING.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelefonica%2Fandroid-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftelefonica%2Fandroid-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelefonica%2Fandroid-logger/lists"}