{"id":14979980,"url":"https://github.com/sephiroth74/androiddebuglog","last_synced_at":"2026-02-15T14:32:49.755Z","repository":{"id":42988313,"uuid":"429513067","full_name":"sephiroth74/AndroidDebugLog","owner":"sephiroth74","description":"Bytecode manipulation gradle plugin to inject automatic logging into java/kotlin classes/methods","archived":false,"fork":false,"pushed_at":"2025-02-19T09:47:14.000Z","size":472,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-05T00:48:06.856Z","etag":null,"topics":["android","compile-time","gradle","logging"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sephiroth74.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":"2021-11-18T17:05:17.000Z","updated_at":"2024-06-01T15:23:44.000Z","dependencies_parsed_at":"2025-02-18T18:21:32.205Z","dependency_job_id":"54f17f4c-28a3-4260-ae42-5c6d68d0e7c5","html_url":"https://github.com/sephiroth74/AndroidDebugLog","commit_stats":{"total_commits":60,"total_committers":2,"mean_commits":30.0,"dds":"0.23333333333333328","last_synced_commit":"e99102cf0cc8f6328ea97161deb5ca2a787b6b0a"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sephiroth74%2FAndroidDebugLog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sephiroth74%2FAndroidDebugLog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sephiroth74%2FAndroidDebugLog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sephiroth74%2FAndroidDebugLog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sephiroth74","download_url":"https://codeload.github.com/sephiroth74/AndroidDebugLog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241945473,"owners_count":20046865,"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","compile-time","gradle","logging"],"created_at":"2024-09-24T14:01:03.553Z","updated_at":"2026-02-15T14:32:49.726Z","avatar_url":"https://github.com/sephiroth74.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AndroidDebugLog\n\nProvides bytecode injection at compile time by using the provided `DebugLog*` annotations. \u003cbr /\u003e\nOnce a class is annotated with the `@DebugLogClass` annotation, the final compiled class will log all the class methods. \u003cbr /\u003e\nThe annotation `@DebugLog` can be used to add logging to a single method.\u003cbr /\u003e\nThis gradle plugin doesn't use reflection to inject the logging. All the work is done at compile time.\n\n\nOriginally forked from https://github.com/Leaking/Hunter \u003cbr /\u003e\nand inspired by https://www.fatalerrors.org/a/how-to-use-transform-api-and-asm-to-implement-an-anti-quick-click-case.html.\n\n[![Maven Central](https://img.shields.io/maven-central/v/it.sephiroth.android.library.debuglog/debuglog-plugin)](https://repo1.maven.org/maven2/it/sephiroth/android/library/debuglog/debuglog-plugin/)\n\nSee last version here: https://search.maven.org/artifact/it.sephiroth.android.library.debuglog/debuglog-plugin\n\n\n# Installation\n\nAdd the classpath `it.sephiroth.android.library.debuglog:debuglog-plugin:*version` to your root **build.gradle** file:\n\n\nbuildscript {\n    ext.debuglog_version = \"1.0.4\"\n\n    dependencies {\n        ...\n        classpath \"it.sephiroth.android.library.asm:asm-debuglog-plugin:$debuglog_version\"\n        classpath \"it.sephiroth.android.library.asm:asm-logging-plugin:$debuglog_version\"\n        classpath \"it.sephiroth.android.library.asm:asm-logging-level-plugin:$debuglog_version\"\n    }\n}\n\n\nthen in your root settings.gradle file:\n\n\n    pluginManagement {\n        repositories {\n            gradlePluginPortal()\n            google()\n            mavenCentral()\n            ...\n            maven { url = uri(\"https://repo1.maven.org/maven2\") }\n        }\n    }\n\n\nThen, your in your module **build.gradle** file, enable the plugin:\n\n    plugins {\n        ...\n        id 'it.sephiroth.android.library.asm.asm-debuglog-plugin'\n        id 'it.sephiroth.android.library.asm.asm-logging-plugin'\n        id 'it.sephiroth.android.library.asm.asm-logging-level-plugin'\n    }\n    \n    dependencies {\n        ...\n        implementation \"it.sephiroth.android.library.asm:asm-debuglog-runtime:$debuglog_version\"\n        implementation \"it.sephiroth.android.library.asm:asm-logging-runtime:$debuglog_version\"\n        implementation \"it.sephiroth.android.library.asm:asm-logging-level-runtime:$debuglog_version\"        \n    }\n\n    \n    // android asm plugins configuration block\n    androidASM {\n\n        // configuration for the Trunk logging\n        logging {\n            enabled = true\n        }\n\n        // configuration for DebugLog and DebugLogClass annotations\n        debugLog {\n            enabled = true\n            debugExit = false\n            debugArguments = it.sephiroth.android.library.asm.plugin.debuglog.DebugArguments.Full\n            logLevel = it.sephiroth.android.library.asm.plugin.core.AndroidLogLevel.DEBUG\n        }\n\n        // configuration for the logging level plugin\n        loggingLevel {\n            enabled = true\n            runVariant = \".*release\"\n            minLogLevel = it.sephiroth.android.library.asm.plugin.core.AndroidLogLevel.DEBUG\n            includeLibs = true\n        }\n    }\n\n# Usage\n\nYou can add the `DebugLogClass` to the class declaration. In this way all the class methods will be logged\n\n    @DebugLogClass\n    class TestClass {\n        ...\n    }\n\n\nOtherwise, to debug print a single method::\n\n    @Debug(logLevel=Log.INFO, debugArguments=DebugArguments.FULL, debugResult=true) // all annotation params are optional\n    private fun hello(input: String) {\n        ...\n    }\n\n\n# License\n\n    MIT License\n\n    Copyright (c) 2021 Alessandro Crugnola\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsephiroth74%2Fandroiddebuglog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsephiroth74%2Fandroiddebuglog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsephiroth74%2Fandroiddebuglog/lists"}