{"id":19867976,"url":"https://github.com/activeshadow/logr","last_synced_at":"2025-08-31T05:31:17.524Z","repository":{"id":57493358,"uuid":"145414290","full_name":"activeshadow/logr","owner":"activeshadow","description":"Some implementations of the go-logr/logr interface.","archived":false,"fork":false,"pushed_at":"2020-06-10T17:54:54.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-15T05:21:52.375Z","etag":null,"topics":["golang","logging"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/activeshadow.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":"2018-08-20T12:23:42.000Z","updated_at":"2020-06-10T17:54:56.000Z","dependencies_parsed_at":"2022-08-28T17:02:35.135Z","dependency_job_id":null,"html_url":"https://github.com/activeshadow/logr","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/activeshadow/logr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeshadow%2Flogr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeshadow%2Flogr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeshadow%2Flogr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeshadow%2Flogr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/activeshadow","download_url":"https://codeload.github.com/activeshadow/logr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeshadow%2Flogr/sbom","scorecard":{"id":163959,"data":{"date":"2025-08-11","repo":{"name":"github.com/activeshadow/logr","commit":"6e2756e747bdbd2370cd11aeebc2c0f0d8fb8c01"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"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":"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":"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":"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":"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":"Code-Review","score":1,"reason":"Found 2/12 approved changesets -- score normalized to 1","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":"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":"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":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"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":"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: MIT License: 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":"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 3 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":10,"reason":"0 existing vulnerabilities detected","details":null,"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-16T14:19:33.688Z","repository_id":57493358,"created_at":"2025-08-16T14:19:33.688Z","updated_at":"2025-08-16T14:19:33.688Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272940673,"owners_count":25018950,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"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":["golang","logging"],"created_at":"2024-11-12T15:31:37.994Z","updated_at":"2025-08-31T05:31:17.476Z","avatar_url":"https://github.com/activeshadow.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logr [![Build Status](https://travis-ci.com/activeshadow/logr.svg?branch=master)](https://travis-ci.com/activeshadow/logr)\n\nSome different implementations of the\n[go-logr/logr](https://github.com/go-logr/logr) logging interface.\n\n| Implementation | Notes |\n|---|---|\n|[stdlogr](stdlogr)| A *standard* implementation using `fmt` that prints logs to `STDOUT` in [logfmt](http://godoc.org/github.com/kr/logfmt)|\n|[logrusr](logrusr)|Output using [logrus](https://github.com/sirupsen/logrus)\n\n## stdlogr\n\nThe `stdlogr` uses `fmt` to print logs to `STDOUT` in\n[logfmt](http://godoc.org/github.com/kr/logfmt). Error logs get printed even\nif the `InfoLogger` is disabled.\n\nExample:\n\n```\npackage main\n\nimport (\n  \"errors\"\n\n  \"actshad.dev/logr/stdlogr\"\n)\n\nfunc main() {\n  // Create new \"foo\" logger that's enabled and has a verbosity level of 1.\n  logger := stdlogr.New(\"foo\", true, 1)\n  logger.Info(\"is this working?\", \"working\", true)\n\n  foobarLogger := logger.WithName(\"bar\")\n  err := errors.New(\"this is an error\")\n  foobarLogger.Error(err, \"what about this logger?\", \"hello\", \"world!\")\n\n  logger.V(1).Info(\"verbosity 1 log\")\n  logger.V(2).Info(\"verbosity 2 log\")\n}\n```\n\nOutput:\n\n```\nlevel=info ts=1534767423 name=foo msg=\"is this working?\" working=true\nlevel=error ts=1534767423 name=foo.bar msg=\"what about this logger?\" hello=world! error=\"this is an error\"\nlevel=info ts=1534767423 name=foo msg=\"verbosity 1 log\" v=1\n```\n\n## logrusr\n\nThis was developed to work with [kubebuilder](https://github.com/kubernetes-sigs/kubebuilder) which uses logr internally. We needed logrus output, so this seemed the simplest way.\n\nExample:\n\n\n```\npackage main\n\nimport (\n  \"errors\"\n  \"github.com/JeremyMarshall/logr/logrusr\"\n  \"github.com/sirupsen/logrus\"\n)\n\nfunc main() {\n  // Create new \"foo\" logger that's enabled and has a verbosity level of 1.\n  l := logrus.New()\n  \n  // PrettyPrint should be false/not set \n  l.SetFormatter(\u0026logrus.JSONFormatter{PrettyPrint: true})\n\n  logger := logrusr.New(\"foo\", *l ) \n  logger.Info(\"is this working?\", \"working\", true)\n\n  foobarLogger := logger.WithName(\"bar\")\n  err := errors.New(\"this is an error\")\n  foobarLogger.Error(err, \"what about this logger?\", \"hello\", \"world!\")\n\n  logrusr.SetVerbosity(1)\n  logger.V(1).Info(\"verbosity 1 log\")\n  \n  logger.V(2).Info(\"verbosity 2 log\")\n}\n```\n\nOutput:\n\n```json\n{\n  \"level\": \"info\",\n  \"msg\": \"is this working?\",\n  \"request\": {\n    \"kvs\": [\n      \"working\",\n      true\n    ],\n    \"name\": \"foo\",\n    \"this_kvs\": {}\n  },\n  \"time\": \"2019-07-30T14:19:05+10:00\"\n}\n{\n  \"level\": \"error\",\n  \"msg\": \"what about this logger?\",\n  \"request\": {\n    \"error\": {},\n    \"kvs\": [\n      \"hello\",\n      \"world!\"\n    ],\n    \"name\": \"foo.bar\",\n    \"this_kvs\": {}\n  },\n  \"time\": \"2019-07-30T14:19:05+10:00\"\n}\n{\n  \"level\": \"info\",\n  \"msg\": \"verbosity 1 log\",\n  \"request\": {\n    \"kvs\": null,\n    \"name\": \"foo\",\n    \"this_kvs\": {\n      \"v\": 1\n    }\n  },\n  \"time\": \"2019-07-30T14:19:05+10:00\"\n}\n```\n\n## License\n\n```\nMIT License\n\nCopyright (c) 2018\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factiveshadow%2Flogr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factiveshadow%2Flogr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factiveshadow%2Flogr/lists"}