{"id":21365990,"url":"https://github.com/seanghay/console","last_synced_at":"2026-04-17T05:31:55.758Z","repository":{"id":41904629,"uuid":"231511491","full_name":"seanghay/console","owner":"seanghay","description":"A simple yet concise console.log for Android","archived":false,"fork":false,"pushed_at":"2022-04-23T10:02:27.000Z","size":145,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T00:11:41.394Z","etag":null,"topics":["android","javascript","kotlin","logcat"],"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/seanghay.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}},"created_at":"2020-01-03T04:24:20.000Z","updated_at":"2023-06-11T03:39:23.000Z","dependencies_parsed_at":"2022-08-11T20:50:11.135Z","dependency_job_id":null,"html_url":"https://github.com/seanghay/console","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/seanghay/console","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanghay%2Fconsole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanghay%2Fconsole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanghay%2Fconsole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanghay%2Fconsole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seanghay","download_url":"https://codeload.github.com/seanghay/console/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanghay%2Fconsole/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31916769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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","javascript","kotlin","logcat"],"created_at":"2024-11-22T07:13:22.952Z","updated_at":"2026-04-17T05:31:55.735Z","avatar_url":"https://github.com/seanghay.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Console\nA simple yet concise JavaScript `console.log` for Android\n\n[ ![Build Status](https://travis-ci.org/seanghay/studio.svg?branch=master)](https://travis-ci.org/seanghay/console)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[ ![Bintray](https://api.bintray.com/packages/seanghay/maven/console/images/download.svg) ](https://bintray.com/seanghay/maven/console/_latestVersion)\n\n\u003e I wrote this library because I want to feel like I'm writting  JavaScript `console` in Android\n------------\n\n\n## Usage\nIt uses the default tag which is `Console` to print to `logcat`\n\n\n```kotlin\nfun main() {\n  console.log(\"message1\", \"message2\", obj)\n  console.info(\"message1\", \"message2\")\n  console.error(\"message1\", \"message2\")\n  console.warn(\"message1\", \"message2\")\n  \n  // Console: message1, message2, Object(...).toString()\n}\n```\n\n------------\n\n\n### Customize Tag\nIt can be useful when you want to have different tags for different logs.\n\n```kotlin\nfun main() {\n  console.tag(\"myTag\") {\n    log(\"hello\", \"world\")\n    error(\"oh no!\")\n  }\n  \n    // myTag: hello, world\n    // myTag: oh no!\n}\n```\nIt's the same as\n\n```kotlin\nfun main() {\n  console.tag(\"myTag\")\n  \n  log(\"hello\", \"world\")\n  error(\"oh no!\")\n  \n  console.tagReset()\n}\n```\n------------\n\n### Log Count\nCount every time it has been called\n\n```kotlin\nfun main() {\n   \n   repeat(100) {\n     console.count(\"myCount\")\n     // myCount: 1\n     // myCount: 2\n     // myCount: ..\n     // myCount: 100\n   }\n   \n   \n   console.countReset(\"myCount\")\n   // myCount: 100\n}\n```\n\n------------\n\n\n### Time Measurement\nUseful for profiling your code\n\n```kotlin\nfun main() {\n   console.time(\"profile\")\n   \n   Thread.sleep(1_000L)\n   \n   console.timeEnd(\"profile\")\n   \n   // profile: 1001 millis\n}\n```\n\n--------\n\n### Installation\n\n[![](https://jitpack.io/v/seanghay/console.svg)](https://jitpack.io/#seanghay/console)\n\n```gradle\nallprojects {\n  repositories {\n    ...\n    maven { url 'https://jitpack.io' }\n  }\n}\n```\n\n```gradle\ndependencies {\n  implementation 'com.github.seanghay:console:1.0.0-alpha01'\n}\n```\n\n### Issues\n\nIf you find anything unsual or bugs in this library, please open a new issue or pull request. I will try to solve it as soon as possible. \n\nAlso, please let me know if anything can be improved! :smile:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanghay%2Fconsole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseanghay%2Fconsole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanghay%2Fconsole/lists"}