{"id":19547491,"url":"https://github.com/infinite-technology/blackbox","last_synced_at":"2026-06-15T17:31:13.675Z","repository":{"id":125521580,"uuid":"153998905","full_name":"INFINITE-TECHNOLOGY/BLACKBOX","owner":"INFINITE-TECHNOLOGY","description":"Logging code automation solution","archived":false,"fork":false,"pushed_at":"2020-09-19T14:06:22.000Z","size":435,"stargazers_count":2,"open_issues_count":8,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T06:25:36.125Z","etag":null,"topics":["ast","automation","coding","groovy","logging","macros","meta-programming","metaprogramming","slf4j"],"latest_commit_sha":null,"homepage":"https://i-t.io/BlackBox/","language":"Groovy","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/INFINITE-TECHNOLOGY.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":"2018-10-21T11:02:07.000Z","updated_at":"2020-09-19T14:06:24.000Z","dependencies_parsed_at":"2023-03-25T19:47:46.291Z","dependency_job_id":null,"html_url":"https://github.com/INFINITE-TECHNOLOGY/BLACKBOX","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/INFINITE-TECHNOLOGY/BLACKBOX","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INFINITE-TECHNOLOGY%2FBLACKBOX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INFINITE-TECHNOLOGY%2FBLACKBOX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INFINITE-TECHNOLOGY%2FBLACKBOX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INFINITE-TECHNOLOGY%2FBLACKBOX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/INFINITE-TECHNOLOGY","download_url":"https://codeload.github.com/INFINITE-TECHNOLOGY/BLACKBOX/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INFINITE-TECHNOLOGY%2FBLACKBOX/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34374144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"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":["ast","automation","coding","groovy","logging","macros","meta-programming","metaprogramming","slf4j"],"created_at":"2024-11-11T03:50:07.887Z","updated_at":"2026-06-15T17:31:13.658Z","avatar_url":"https://github.com/INFINITE-TECHNOLOGY.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n## Introduction\n`BlackBox` is a `Groovy` AST transformation that adds logging code into annotated methods.\n\n## In short\n`@BlackBox` Annotation adds logging code into annotated Groovy methods/constructors.\n\nDetalization is controlled using `level` annotation parameter:\n\n- `BlackBoxLevel.METHOD` - to log each method call with its arguments\n- `BlackBoxLevel.ERROR` - only to log unhandled method exceptions (including associated method arguments as well).\n\n## Gradle\n\n\u003e ❗ Via **JCenter** repository\n\n```groovy\ncompile \"io.i-t:blackbox:2.2.0\"\n```\n\n## Example\n\nThe following method annotated with `@BlackBox`:\n\n```groovy\n@BlackBox(level = BlackBoxLevel.METHOD)\nString foobar(String foo) {\n    String bar = \"bar\"\n    String foobar = foo + bar\n    return foobar\n}\n```\n\nIs transformed into:\n\n```groovy\n    @io.infinite.blackbox.BlackBox(level = io.infinite.blackbox.BlackBoxLevel.METHOD)\n    public java.lang.String foobar(java.lang.String foo) {\n        java.lang.Object resultPlaceHolder \n        blackBoxRuntime.methodBegin(new io.infinite.blackbox.MethodMetaData('Foobar', 'foobar', 8, 13, 1, 2), ['foo': foo ])\n        try {\n            java.lang.String bar = 'bar'\n            java.lang.String foobar = foo + bar \n            return resultPlaceHolder = foobar \n        } \n        catch (java.lang.Exception automaticException) {\n            blackBoxRuntime.methodException(new io.infinite.blackbox.MethodMetaData('Foobar', 'foobar', 8, 13, 1, 2), ['foo': foo ], automaticException)\n            throw automaticException \n        } \n        finally { \n            blackBoxRuntime.methodResult(new io.infinite.blackbox.MethodMetaData('Foobar', 'foobar', 8, 13, 1, 2), resultPlaceHolder)\n            blackBoxRuntime.methodEnd(new io.infinite.blackbox.MethodMetaData('Foobar', 'foobar', 8, 13, 1, 2))\n        } \n    }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinite-technology%2Fblackbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfinite-technology%2Fblackbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinite-technology%2Fblackbox/lists"}