{"id":13878575,"url":"https://github.com/ruby/logger","last_synced_at":"2025-05-14T09:08:28.604Z","repository":{"id":33261011,"uuid":"133776182","full_name":"ruby/logger","owner":"ruby","description":"simple logging utility","archived":false,"fork":false,"pushed_at":"2025-05-01T09:57:52.000Z","size":789,"stargazers_count":124,"open_issues_count":2,"forks_count":67,"subscribers_count":35,"default_branch":"master","last_synced_at":"2025-05-03T14:41:12.393Z","etag":null,"topics":["hacktoberfest","logger","ruby"],"latest_commit_sha":null,"homepage":"https://ruby.github.io/logger/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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,"zenodo":null}},"created_at":"2018-05-17T07:31:16.000Z","updated_at":"2025-05-01T09:57:53.000Z","dependencies_parsed_at":"2024-12-23T08:25:50.036Z","dependency_job_id":"ffa20318-2136-4c54-aa55-00e0168cd341","html_url":"https://github.com/ruby/logger","commit_stats":{"total_commits":255,"total_committers":56,"mean_commits":4.553571428571429,"dds":0.7843137254901961,"last_synced_commit":"8ab49e169b9768c8d6debda767fd7d167fb66a15"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Flogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Flogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Flogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Flogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252435839,"owners_count":21747458,"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":["hacktoberfest","logger","ruby"],"created_at":"2024-08-06T08:01:53.589Z","updated_at":"2025-05-14T09:08:28.554Z","avatar_url":"https://github.com/ruby.png","language":"Ruby","readme":"# Logger\n\nLogger is a simple but powerful logging utility to output messages in your Ruby program.\n\nLogger has the following features:\n\n * Print messages to different levels such as `info` and `error`\n * Auto-rolling of log files\n * Setting the format of log messages\n * Specifying a program name in conjunction with the message\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'logger'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install logger\n\n## Usage\n\n### Simple Example\n\n```ruby\nrequire 'logger'\n\n# Create a Logger that prints to STDOUT\nlog = Logger.new(STDOUT)\nlog.debug(\"Created Logger\")\n\nlog.info(\"Program finished\")\n\n# Create a Logger that prints to STDERR\nerror_log = Logger.new(STDERR)\nerror_log = error_log.error(\"fatal error\")\n```\n\n## Development\n\nAfter checking out the repo, run the following to install dependencies.\n\n```\n$ bin/setup\n```\n\nThen, run the tests as:\n\n```\n$ rake test\n```\n\nTo install this gem onto your local machine, run\n\n```\n$ rake install\n```\n\nTo release a new version, update the version number in `lib/logger/version.rb`, and then run\n\n```\n$ rake release\n```\n\nwhich will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Advanced Development\n\n### Run tests of a specific file\n\n```\n$ ruby test/logger/test_logger.rb\n```\n\n### Run tests filtering test methods by a name\n\n`--name` option is available as:\n\n```\n$ ruby test/logger/test_logger.rb --name test_lshift\n```\n\n### Publish documents to GitHub Pages\n\n```\n$ rake gh-pages\n```\n\nThen, git commit and push the generated HTMLs onto `gh-pages` branch.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ruby/logger.\n\n## License\n\nThe gem is available as open source under the terms of the [BSD-2-Clause](BSDL).\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Flogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Flogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Flogger/lists"}