{"id":20930505,"url":"https://github.com/liangjingkanji/logcat","last_synced_at":"2025-04-07T13:06:52.473Z","repository":{"id":61089716,"uuid":"221693768","full_name":"liangjingkanji/LogCat","owner":"liangjingkanji","description":"🐞 Android Logcat 日志工具","archived":false,"fork":false,"pushed_at":"2024-11-03T06:57:44.000Z","size":602,"stargazers_count":85,"open_issues_count":2,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T11:06:26.610Z","etag":null,"topics":["android","kotlin","log"],"latest_commit_sha":null,"homepage":"","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/liangjingkanji.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-14T12:34:42.000Z","updated_at":"2025-01-25T06:40:26.000Z","dependencies_parsed_at":"2024-11-18T21:40:32.976Z","dependency_job_id":null,"html_url":"https://github.com/liangjingkanji/LogCat","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liangjingkanji%2FLogCat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liangjingkanji%2FLogCat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liangjingkanji%2FLogCat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liangjingkanji%2FLogCat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liangjingkanji","download_url":"https://codeload.github.com/liangjingkanji/LogCat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657281,"owners_count":20974345,"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":["android","kotlin","log"],"created_at":"2024-11-18T21:34:35.135Z","updated_at":"2025-04-07T13:06:52.449Z","avatar_url":"https://github.com/liangjingkanji.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"## LogCat\n\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://i.imgur.com/3NdQ93C.png\" alt=\"1600\" width=\"25%\"/\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cstrong\u003e轻量级的日志工具\u003c/strong\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://i.imgur.com/t3vnPHs.jpg\" width=\"200\"/\u003e\u003c/p\u003e\n\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://jitpack.io/#liangjingkanji/LogCat\"\u003e\u003cimg src=\"https://jitpack.io/v/liangjingkanji/LogCat.svg\"/\u003e\u003c/a\u003e\n\u003cimg src=\"https://img.shields.io/badge/language-kotlin-orange.svg\"/\u003e\n\u003cimg src=\"https://img.shields.io/badge/license-Apache-blue\"/\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/liangjingkanji/liangjingkanji/master/img/group.svg\"/\u003e\n\u003c/p\u003e\n\n\n## 特点\n\n-   日志全局开关\n-   日志全局标签\n-   日志全局Hook\n-   日志代码位置信息\n-   格式化输出JSON\n-   超长日志分段输出\n\n## 使用\n\n```kotlin\nLogCat.setDebug(BuildConfig.DEBUG) // 全局开关\n\nLogCat.d(\"log message\")\n```\n\n## 安装\n\n添加远程仓库根据创建项目的 Android Studio 版本有所不同\n\nAndroid Studio Arctic Fox以下创建的项目 在项目根目录的 build.gradle 添加仓库\n\n```groovy\nallprojects {\n    repositories {\n        // ...\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\nAndroid Studio Arctic Fox以上创建的项目 在项目根目录的 settings.gradle 添加仓库\n\n```kotlin\ndependencyResolutionManagement {\n    repositories {\n        // ...\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\n然后在 module 的 build.gradle 添加依赖框架\n\n```groovy\nimplementation 'com.github.liangjingkanji:LogCat:1.2.4'\n```\n\n\n\n## License\n\n```\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliangjingkanji%2Flogcat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliangjingkanji%2Flogcat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliangjingkanji%2Flogcat/lists"}