{"id":13879453,"url":"https://github.com/umbrellio/hourly_logger_rotator","last_synced_at":"2025-05-06T19:22:52.174Z","repository":{"id":56876681,"uuid":"123926810","full_name":"umbrellio/hourly_logger_rotator","owner":"umbrellio","description":"Ruby Logger patch for hourly log rotation","archived":false,"fork":false,"pushed_at":"2020-01-24T11:13:57.000Z","size":36,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-12T13:07:07.001Z","etag":null,"topics":["log-rotation","log-rotator","logger","rotator","ruby-logger"],"latest_commit_sha":null,"homepage":null,"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/umbrellio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-05T13:54:57.000Z","updated_at":"2020-12-31T19:38:42.000Z","dependencies_parsed_at":"2022-08-20T11:30:56.299Z","dependency_job_id":null,"html_url":"https://github.com/umbrellio/hourly_logger_rotator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Fhourly_logger_rotator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Fhourly_logger_rotator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Fhourly_logger_rotator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Fhourly_logger_rotator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umbrellio","download_url":"https://codeload.github.com/umbrellio/hourly_logger_rotator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249638251,"owners_count":21304305,"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":["log-rotation","log-rotator","logger","rotator","ruby-logger"],"created_at":"2024-08-06T08:02:21.578Z","updated_at":"2025-04-19T07:33:29.618Z","avatar_url":"https://github.com/umbrellio.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# HourlyLoggerRotator \u0026middot; [![Gem Version](https://badge.fury.io/rb/hourly_logger_rotator.svg)](https://badge.fury.io/rb/hourly_logger_rotator) [![Build Status](https://travis-ci.org/umbrellio/hourly_logger_rotator.svg?branch=master)](https://travis-ci.org/umbrellio/hourly_logger_rotator) [![Coverage Status](https://coveralls.io/repos/github/umbrellio/hourly_logger_rotator/badge.svg?branch=master)](https://coveralls.io/github/umbrellio/hourly_logger_rotator?branch=master)\n\nLogger class patch for hourly log rotation support\n\n## Requirements\n\nRuby 2.3, 2.4, 2.5, 2.6 or 2.7\n\n## Installation\n\n- `gem install hourly_logger_rotator` and `require \"hourly_logger_rotation\"`\n- Or add it to your Gemfile and `bundle`\n\n## Usage\n\nRequiring the gem automatically adds an `hourly` rotation period support to Ruby's standard\nLogger class. You can initialize it like this:\n\n```\nLogger.new('some_log_file', 'hourly')\n```\n\nKeep in mind that loggers created before the gem is required will not\nsupport the hourly rotation period. Specifically, in case of a Rails app,\nrequire this before Rails initializes; a good place to do that is in `application.rb`\nright after requiring `boot`\n\n### Setting default rotation period\n\n`HourlyLoggerRotator.default_rotation_period=(some_period)` will make it so newly created\nloggers have a rotation period of `some_period` unless you provide an explicit\nperiod in the constructor\n\n## License\nReleased under MIT License\n\n## Authors\nCreated by Dmitry Gubitskiy\n\n\u003ca href=\"https://github.com/umbrellio/\"\u003e\n\u003cimg style=\"float: left;\" src=\"https://umbrellio.github.io/Umbrellio/supported_by_umbrellio.svg\"\nalt=\"Supported by Umbrellio\" width=\"439\" height=\"72\"\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumbrellio%2Fhourly_logger_rotator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumbrellio%2Fhourly_logger_rotator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumbrellio%2Fhourly_logger_rotator/lists"}