{"id":15064639,"url":"https://github.com/phallguy/shog","last_synced_at":"2025-05-12T17:23:59.223Z","repository":{"id":18787812,"uuid":"22001367","full_name":"phallguy/shog","owner":"phallguy","description":"Simple colored logging for rails 4 and 5 apps","archived":false,"fork":false,"pushed_at":"2018-05-21T16:34:49.000Z","size":583,"stargazers_count":69,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-12T17:23:53.648Z","etag":null,"topics":["logging","ruby-on-rails"],"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/phallguy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2014-07-19T03:49:53.000Z","updated_at":"2024-03-10T04:31:59.000Z","dependencies_parsed_at":"2022-09-25T02:20:42.722Z","dependency_job_id":null,"html_url":"https://github.com/phallguy/shog","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phallguy%2Fshog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phallguy%2Fshog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phallguy%2Fshog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phallguy%2Fshog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phallguy","download_url":"https://codeload.github.com/phallguy/shog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253785289,"owners_count":21963943,"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":["logging","ruby-on-rails"],"created_at":"2024-09-25T00:23:09.901Z","updated_at":"2025-05-12T17:23:59.192Z","avatar_url":"https://github.com/phallguy.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shog\n\n[![Gem Version](https://badge.fury.io/rb/shog.svg)](http://badge.fury.io/rb/shog)\n[![Code Climate](https://codeclimate.com/github/phallguy/shog.png)](https://codeclimate.com/github/phallguy/shog)\n[![Circle CI](https://circleci.com/gh/phallguy/shog.svg?style=svg)](https://circleci.com/gh/phallguy/shog)\n\n(Also check [scorpion](http://github.com/phallguy/scorpion) for a light-weight IoC container)\n\nSimple colored logging for rails 4 and 5 apps.\n\nThere are plenty of logging frameworks for making tags (like timestamp, log\nlevel, etc.) more colorful - but what about the details in the line of text?\nWhat about the HTTP method used to make the request? What about the render\ntimes?\n\nShog adds colors to highlight context and make it easier to pick out the\nimportant parts of the message. Unformatted logs like this\n\n![Plain Logs](docs/images/plain.png)\n\nbecome easy to ready and process logs like this\n\n![Shogged Logs](docs/images/shogged.png)\n\n## Using Shog\n\nJust add the following to your Gemfile to enable shiny output logs.\n\n```\ngem 'shog'\n```\n\nShog comes built in with some sane defaults for rails apps. But you can\ncustomize the output  to match additional log message by your app, or to use\ndifferent options in production.\n\nTo change the defaults, add `shog.rb` to your `config/initializers` folder\n\n```ruby\nShog.configure do\n  if ::Rails.env.production?\n    reset_config!\n    timestamp\n  end\n\n  match /execution expired/ do |msg,matches|\n    # Highlight timeout errors\n    msg.red\n  end\nend\n```\n\nSee [Shog::Formatter#configure](lib/shog/formatter.rb) for more configuration options.\n\n## Contributing\n\n1. Fork it ( https://github.com/phallguy/shog/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\n\n# License\n\n[The MIT License (MIT)](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2014 Paul Alexander\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphallguy%2Fshog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphallguy%2Fshog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphallguy%2Fshog/lists"}