{"id":15033042,"url":"https://github.com/ruby/logger-application","last_synced_at":"2025-10-19T22:32:12.240Z","repository":{"id":18252558,"uuid":"21407055","full_name":"ruby/logger-application","owner":"ruby","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-11T02:21:00.000Z","size":35,"stargazers_count":8,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-30T07:32:50.590Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":null,"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":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-02T01:05:37.000Z","updated_at":"2022-03-25T09:30:45.000Z","dependencies_parsed_at":"2022-09-14T01:33:23.739Z","dependency_job_id":null,"html_url":"https://github.com/ruby/logger-application","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Flogger-application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Flogger-application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Flogger-application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Flogger-application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/logger-application/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237224830,"owners_count":19275093,"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":["ruby"],"created_at":"2024-09-24T20:19:57.213Z","updated_at":"2025-10-19T22:32:11.909Z","avatar_url":"https://github.com/ruby.png","language":"Ruby","readme":"# Logger::Application\n\n[![Gem Version](https://badge.fury.io/rb/logger-application.png)](http://badge.fury.io/rb/logger-application)\n[![Build Status](https://travis-ci.org/ruby/logger-application.svg)](https://travis-ci.org/ruby/logger-application)\n\n## Description\n\nAdd logging support to your application.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'logger-application'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install logger-application\n\n## Usage\n\n 1. Define your application class as a sub-class of this class.\n 2. Override the +run+ method in your class to do many things.\n 3. Instantiate it and invoke #start.\n\n## Example\n\n```ruby\nclass FooApp \u003c Logger::Application\n  def initialize(foo_app, application_specific, arguments)\n    super('FooApp') # Name of the application.\n  end\n\n  def run\n    ...\n    log(WARN, 'warning', 'my_method1')\n    ...\n    @log.error('my_method2') { 'Error!' }\n    ...\n  end\nend\n\nstatus = FooApp.new(....).start\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/ruby/logger-application/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Flogger-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Flogger-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Flogger-application/lists"}