{"id":15502037,"url":"https://github.com/prodis/rails-labeled_log","last_synced_at":"2026-07-17T21:33:32.919Z","repository":{"id":56890606,"uuid":"42750347","full_name":"prodis/rails-labeled_log","owner":"prodis","description":"A tool to use Rails Tagged Logging easily in your Ruby classes.","archived":false,"fork":false,"pushed_at":"2015-09-28T22:08:44.000Z","size":204,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T01:59:53.972Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/prodis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-18T22:42:05.000Z","updated_at":"2015-09-22T12:38:33.000Z","dependencies_parsed_at":"2022-08-20T15:20:43.072Z","dependency_job_id":null,"html_url":"https://github.com/prodis/rails-labeled_log","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/prodis/rails-labeled_log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prodis%2Frails-labeled_log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prodis%2Frails-labeled_log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prodis%2Frails-labeled_log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prodis%2Frails-labeled_log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prodis","download_url":"https://codeload.github.com/prodis/rails-labeled_log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prodis%2Frails-labeled_log/sbom","scorecard":{"id":745926,"data":{"date":"2025-08-11","repo":{"name":"github.com/prodis/rails-labeled_log","commit":"9b7d0a9a15b1fc3dc26d70aaa0414f91b51c32c6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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/23 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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"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"}},{"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"}}]},"last_synced_at":"2025-08-22T18:43:12.623Z","repository_id":56890606,"created_at":"2025-08-22T18:43:12.623Z","updated_at":"2025-08-22T18:43:12.623Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278734424,"owners_count":26036404,"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-10-07T02:00:06.786Z","response_time":59,"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":"2024-10-02T09:07:17.378Z","updated_at":"2025-10-10T08:02:19.296Z","avatar_url":"https://github.com/prodis.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rails Labeled Log\nA tool to use Rails Tagged Logging easily in your Ruby classes.\n\n[![Gem Version](https://badge.fury.io/rb/rails-labeled_log.svg)](http://badge.fury.io/rb/rails-labeled_log)\n[![Build Status](https://travis-ci.org/prodis/rails-labeled_log.svg?branch=master)](https://travis-ci.org/prodis/rails-labeled_log)\n[![Coverage Status](https://coveralls.io/repos/prodis/rails-labeled_log/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/prodis/rails-labeled_log?branch=master)\n[![Code Climate](https://codeclimate.com/github/prodis/rails-labeled_log/badges/gpa.svg)](https://codeclimate.com/github/prodis/rails-labeled_log)\n[![Dependency Status](https://gemnasium.com/prodis/rails-labeled_log.svg)](https://gemnasium.com/prodis/rails-labeled_log)\n\n\n## Installing\n\n### Gemfile\n\n```ruby\ngem 'rails-labeled_log'\n```\n\n### Direct installation\n\n```console\n$ gem install rails-labeled_log\n```\n\n\n## Using\n\n### Rails::LabeledLog::Logging module\n\n```ruby\nrequire 'rails-labeled_log'\n\n# Include Rails::LabeledLog::Logging module in your class\nmodule FakeModule\n  class FakeClass\n    include Rails::LabeledLog::Logging\n\n    def do_something\n      # Log some info here\n      log_info 'I did something'\n    end\n  end\nend\n\nfake = FakeModule::FakeClass.new\nfake.do_something\n\n# You also can use class methods\nFakeModule::FakeClass.log_error 'Something was wrong'\n\n# Optionally, you can supply additional labels for all log methods\nFakeModule::FakeClass.log_warn 'Pay attention!', 'Warning'\n```\n\nRails log will be labeled with the class name (and optinal additional labels):\n```\n[FakeModule::FakeClass] I did something at 2015-09-21 00:33:17 -0300\n[FakeModule::FakeClass] Something was wrong at 2015-09-21 00:33:18 -0300\n[FakeModule::FakeClass] [Warning] Pay attention! at 2015-09-21 00:33:19 -0300\n```\n\n##### Available (private) instance methods and class methods\n- log_info\n- log_error\n- log_warn\n- log_debug\n- log_fatal\n\n### Rails::LabeledLog::Logger class\n\n```ruby\nrequire 'rails-labeled_log'\n\nlogger = Rails::LabeledLog::Logger.new('One', 'Two')\nlogger.info 'My info message'\nlogger.info 'My info message', 'Three', 'Four'\n```\n\nIn the Rails Log:\n```\n[One] [Two] My info message at 2015-09-21 01:01:43 -0300\n[One] [Two] [Three] [Four] My info message at 2015-09-21 01:01:44 -0300\n```\n\n##### Available methods\n- info\n- error\n- warn\n- debug\n- fatal\n\n\n## Author\n[Fernando Hamasaki de Amorim (prodis)](http://prodis.blog.br)\n\n![Prodis Logo](http://prodis.net.br/images/prodis_150.gif)\n\n\n## Contributing to Rails Labeled Log\n\n- Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.\n- Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.\n- Fork the project.\n- Start a feature/bugfix branch.\n- Commit and push until you are happy with your contribution.\n- Don't forget to rebase with branch master in main project before submit the pull request.\n- Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.\n- Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprodis%2Frails-labeled_log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprodis%2Frails-labeled_log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprodis%2Frails-labeled_log/lists"}