{"id":13531872,"url":"https://github.com/kobusjoubert/faraday-logging-color_formatter","last_synced_at":"2025-04-01T20:30:36.992Z","repository":{"id":65333340,"uuid":"587600793","full_name":"kobusjoubert/faraday-logging-color_formatter","owner":"kobusjoubert","description":"Faraday color logging formatter","archived":false,"fork":false,"pushed_at":"2023-01-25T05:29:02.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T09:41:26.096Z","etag":null,"topics":[],"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/kobusjoubert.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2023-01-11T06:07:14.000Z","updated_at":"2023-01-17T04:04:13.000Z","dependencies_parsed_at":"2023-02-14T05:01:44.477Z","dependency_job_id":null,"html_url":"https://github.com/kobusjoubert/faraday-logging-color_formatter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobusjoubert%2Ffaraday-logging-color_formatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobusjoubert%2Ffaraday-logging-color_formatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobusjoubert%2Ffaraday-logging-color_formatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobusjoubert%2Ffaraday-logging-color_formatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kobusjoubert","download_url":"https://codeload.github.com/kobusjoubert/faraday-logging-color_formatter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246709921,"owners_count":20821296,"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":[],"created_at":"2024-08-01T07:01:06.432Z","updated_at":"2025-04-01T20:30:36.107Z","avatar_url":"https://github.com/kobusjoubert.png","language":"Ruby","funding_links":[],"categories":["Tooling"],"sub_categories":[],"readme":"# Faraday::Logging::ColorFormatter\n\n[![Gem Version](https://badge.fury.io/rb/faraday-logging-color_formatter.svg)](https://badge.fury.io/rb/faraday-logging-color_formatter)\n\nAdd some color to your Faraday logging output.\n\nBefore...\n\n![before](https://user-images.githubusercontent.com/3071529/212807973-e87213da-d687-4db2-af70-5bb67eb81e0a.png)\n\nAfter...\n\n![after](https://user-images.githubusercontent.com/3071529/212807978-609ee381-f445-4d98-9994-31f7a4e5caa5.png)\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n    $ bundle add faraday-logging-color_formatter\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n    $ gem install faraday-logging-color_formatter\n\n## Usage\n\nAdd the following to your ruby program.\n\n    require 'faraday/logging/color_formatter'\n\nAnd then add the `Faraday::Logging::ColorFormatter` formatter to your logger middleware config.\n\n    connection = Faraday.new(url: 'http://httpbingo.org') do |conn|\n      conn.response :logger, ActiveSupport::Logger.new($stdout), formatter: Faraday::Logging::ColorFormatter\n    end\n\nIf you want to replace the default `HTTP Request` and `HTTP Response` prefixes or adjust the indentation, pass in a `prefix` hash with your own values.\n\n    connection = Faraday.new(url: 'http://httpbingo.org') do |conn|\n      conn.response :logger, ActiveSupport::Logger.new($stdout), formatter: Faraday::Logging::ColorFormatter, prefix: { request: 'request', response: 'response', indent: 2 }\n    end\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests and `rake rubocop` to run the linters. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/kobusjoubert/faraday-logging-color_formatter.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkobusjoubert%2Ffaraday-logging-color_formatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkobusjoubert%2Ffaraday-logging-color_formatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkobusjoubert%2Ffaraday-logging-color_formatter/lists"}