{"id":37021570,"url":"https://github.com/hashgraph/log4j2-hedera","last_synced_at":"2026-01-14T02:33:18.779Z","repository":{"id":45160719,"uuid":"250596066","full_name":"hashgraph/log4j2-hedera","owner":"hashgraph","description":"Provides Log4j 2.x support for Hedera™ via an Appender that records logged events using the Hedera™ Consensus Service (HCS).","archived":false,"fork":false,"pushed_at":"2022-11-16T09:25:27.000Z","size":39,"stargazers_count":5,"open_issues_count":8,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-09-10T20:22:04.216Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/hashgraph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-27T17:12:15.000Z","updated_at":"2022-04-06T18:39:04.000Z","dependencies_parsed_at":"2022-09-10T23:56:24.476Z","dependency_job_id":null,"html_url":"https://github.com/hashgraph/log4j2-hedera","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hashgraph/log4j2-hedera","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashgraph%2Flog4j2-hedera","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashgraph%2Flog4j2-hedera/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashgraph%2Flog4j2-hedera/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashgraph%2Flog4j2-hedera/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hashgraph","download_url":"https://codeload.github.com/hashgraph/log4j2-hedera/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashgraph%2Flog4j2-hedera/sbom","scorecard":{"id":456968,"data":{"date":"2025-08-11","repo":{"name":"github.com/hashgraph/log4j2-hedera","commit":"68b0d9d10ce50aa7565828374a35076d2c14651f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/20 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/hashgraph/.github/SECURITY.md:1","Info: Found linked content: github.com/hashgraph/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/hashgraph/.github/SECURITY.md:1","Info: Found text in security policy: github.com/hashgraph/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"44 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-h46c-h94j-95f3","Warn: Project is vulnerable to: GHSA-wf8f-6423-gfxg","Warn: Project is vulnerable to: GHSA-288c-cq4h-88gq","Warn: Project is vulnerable to: GHSA-57j2-w4cx-62h2","Warn: Project is vulnerable to: GHSA-5949-rw7g-wx7w","Warn: Project is vulnerable to: GHSA-5r5r-6hpj-8gg9","Warn: Project is vulnerable to: GHSA-89qr-369f-5m5x","Warn: Project is vulnerable to: GHSA-8c4j-34r4-xr8g","Warn: Project is vulnerable to: GHSA-8w26-6f25-cm9x","Warn: Project is vulnerable to: GHSA-9gph-22xh-8x98","Warn: Project is vulnerable to: GHSA-9m6f-7xcq-8vf8","Warn: Project is vulnerable to: GHSA-cvm9-fjm9-3572","Warn: Project is vulnerable to: GHSA-f9xh-2qgp-cq57","Warn: Project is vulnerable to: GHSA-h3cw-g4mq-c5x2","Warn: Project is vulnerable to: GHSA-jjjh-jjxp-wpff","Warn: Project is vulnerable to: GHSA-m6x4-97wx-4q27","Warn: Project is vulnerable to: GHSA-qjw2-hr98-qgfh","Warn: Project is vulnerable to: GHSA-r3gr-cxrf-hg25","Warn: Project is vulnerable to: GHSA-r695-7vr9-jgc2","Warn: Project is vulnerable to: GHSA-rgv9-q543-rqg4","Warn: Project is vulnerable to: GHSA-v585-23hc-c647","Warn: Project is vulnerable to: GHSA-vfqx-33qm-g869","Warn: Project is vulnerable to: GHSA-wh8g-3j2c-rqj5","Warn: Project is vulnerable to: GHSA-4jrv-ppp4-jm57","Warn: Project is vulnerable to: GHSA-5mg8-w23w-74h3","Warn: Project is vulnerable to: GHSA-7g45-4rm6-3mm3","Warn: Project is vulnerable to: GHSA-4gg5-vx3j-xwc7","Warn: Project is vulnerable to: GHSA-735f-pc8j-v9w8","Warn: Project is vulnerable to: GHSA-77rm-9x9h-xj3g","Warn: Project is vulnerable to: GHSA-g5ww-5jh7-63cx","Warn: Project is vulnerable to: GHSA-h4h5-3hr4-j3g2","Warn: Project is vulnerable to: GHSA-wrvw-hg22-4m67","Warn: Project is vulnerable to: GHSA-w33c-445m-f8w7","Warn: Project is vulnerable to: GHSA-7rjr-3q55-vv33","Warn: Project is vulnerable to: GHSA-8489-44mv-ggj8","Warn: Project is vulnerable to: GHSA-jfh8-c2jp-5v3q","Warn: Project is vulnerable to: GHSA-p6xc-xr62-6r2g","Warn: Project is vulnerable to: GHSA-vwqq-5vrc-xw9h","Warn: Project is vulnerable to: GHSA-4cx2-fc23-5wg6","Warn: Project is vulnerable to: GHSA-6xx3-rg99-gc3p","Warn: Project is vulnerable to: GHSA-8xfc-gm6g-vgpv","Warn: Project is vulnerable to: GHSA-hr8g-6v94-x4m9","Warn: Project is vulnerable to: GHSA-v435-xc8x-wvr9","Warn: Project is vulnerable to: GHSA-wjxj-5m7g-mg7q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T09:58:10.005Z","repository_id":45160719,"created_at":"2025-08-19T09:58:10.005Z","updated_at":"2025-08-19T09:58:10.005Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":[],"created_at":"2026-01-14T02:33:18.214Z","updated_at":"2026-01-14T02:33:18.771Z","avatar_url":"https://github.com/hashgraph.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# log4j2-hedera\nProvides [Log4j 2.x] support for Hedera™ via an Appender that records logged events using the Hedera™ Consensus Service (HCS).\n\n[Log4j 2.x]: https://logging.apache.org/log4j/2.x/\n\n## Install\n\n##### Gradle\n\n```groovy\nimplementation 'com.hedera.hashgraph:log4j2:0.1.0'\n```\n\n##### Maven\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.hedera.hashgraph\u003c/groupId\u003e\n    \u003cartifactId\u003elog4j2\u003c/artifactId\u003e\n    \u003cversion\u003e0.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\n\n* Create the directory `src/main/resources` in your project\n\n* Add the file `log4j2.xml` to the resources directory you just made in your project.  An example configuration file is in this repo.\n\n* Add HederaAppender under Appenders in the log4j2.xml like this:\n```\n...\n\u003cAppenders\u003e\n    ...\n    \u003cHederaAppender name=\"HederaAppender\" operator_id=\"0.0.555555\" topic_id=\"0.0.555556\" \n        operator_key=\"Ed25519PrivateKeyHere\" network_name=\"testnet_or_mainnet\" /\u003e\n\u003c/Appenders\u003e\n\u003cLoggers\u003e\n    \u003cRoot level=\"error\"\u003e\n        \u003cAppenderRef ref=\"HederaAppender\"/\u003e\n    \u003c/Root\u003e\n\u003c/Loggers\u003e\n...\n```\n\n\n* Import the log4j packages `LogManager` and `Logger` like this:\n```\nimport org.apache.logging.log4j.LogManager;\nimport org.apache.logging.log4j.Logger;\n```\n\n\n* Instantiate the logger like this:\n```\nfinal static Logger logger = LogManager.getLogger(App.class);\n```\n\n\n* Log things like this:\n```\nlogger.debug(\"This is a debug log: \" + message);\nlogger.info(\"This is an info log : \" + message);\nlogger.warn(\"This is a warning log : \" + message);\nlogger.error(\"This is an error log : \" + message);\nlogger.fatal(\"This is a fatal log : \" + message);\n```\n\n## Configuration\n\nAll configuration for the Appender is done in `log4j2.xml`.\n\nTo log things under the level of error, make sure to change the line `\u003cRoot level=\"error\"\u003e` to `\u003cRoot level=\"debug\"\u003e`,\\\n`\u003cRoot level=\"info\"\u003e`, or `\u003cRoot level=\"warn\"\u003e`.\n\nMake sure you remember to change the values for each of the `\u003cHederaAppender\u003e` attributes in your project!  The ones provided in the example won't work as is!\n\n#### Attributes\n\nNote: All attribute values should be Strings.\n\n##### Required:\n\n```name```\\\nThe name of the appender\n\n```topicId```\\\nThe ID of your topic in the form of `shard.realm.num`\n\n```operatorId```\\\nYour Hedera Account ID in the form of `shard.realm.num`\n\n```operatorKey```\\\nYour Hedera Account Ed25519 Private Key\n\n```networkName```\\\nThe name of the network you wish to log to, either `testnet` or `mainnet`\n\n##### Optional:\n\n```submitKey```\\\nIf your HCS topic was created with a submit key, you must provide an Ed25519 Private Key\\\n(your submit key) to sign each message with\n\n## Contributing to this Project\n\nWe welcome participation from all developers!\nFor instructions on how to contribute to this repo, please\nreview the [Contributing Guide](CONTRIBUTING.md).\n\n## License\n\nLicensed under Apache License,\nVersion 2.0 – see [LICENSE](LICENSE) in this repo\nor [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashgraph%2Flog4j2-hedera","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhashgraph%2Flog4j2-hedera","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashgraph%2Flog4j2-hedera/lists"}