{"id":13878499,"url":"https://github.com/hoverinc/graphql-log_helper","last_synced_at":"2025-07-16T14:32:23.428Z","repository":{"id":42129677,"uuid":"427473815","full_name":"hoverinc/graphql-log_helper","owner":"hoverinc","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-21T16:59:08.000Z","size":45,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":10,"default_branch":"main","last_synced_at":"2024-10-31T13:25:33.602Z","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/hoverinc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2021-11-12T19:26:42.000Z","updated_at":"2023-12-06T10:15:47.000Z","dependencies_parsed_at":"2023-02-10T19:01:44.732Z","dependency_job_id":null,"html_url":"https://github.com/hoverinc/graphql-log_helper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoverinc%2Fgraphql-log_helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoverinc%2Fgraphql-log_helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoverinc%2Fgraphql-log_helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoverinc%2Fgraphql-log_helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoverinc","download_url":"https://codeload.github.com/hoverinc/graphql-log_helper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226138849,"owners_count":17579496,"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-06T08:01:51.578Z","updated_at":"2024-11-24T07:31:05.908Z","avatar_url":"https://github.com/hoverinc.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Graphql::LogHelper\n\nGraphQL is amazing. But one disadvantage is that with Ruby you lose some of the\nlogging that \"just works\" with REST. That is, all of the log messages have the\nsame controller (`API::GraphqlController`) and the params are lost or\nunstructured.\n\nThis gem aims to make is easy to include this information in logs messages.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'graphql-log_helper'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install graphql-log_helper\n\n## Getting Started\n\nAdd [lograge](https://github.com/roidrage/lograge) to your Gemfile and include\nthe following in `config/initializers/lograge.rb`—\n```ruby\nRails.application.configure do\n  config.lograge.enabled = true\n  config.lograge.formatter = Lograge::Formatters::Json.new\n  config.lograge.custom_options = lambda do |event|\n    if event.payload[:controller] == 'GraphqlController'\n      Graphql::LogHelper.log_details(event.payload[:params])\n    else\n      { params: event.payload[:params] }\n    end.compact\n  end\nend\n```\n\n## Documentation\n\nTODO\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at\nhttps://github.com/hoverinc/graphql-log_helper. This project is intended to be\na safe, welcoming space for collaboration, and contributors are expected to\nadhere to the\n[code of conduct](https://github.com/hoverinc/graphql-log_helper/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the\n[MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Graphql::LogHelper project's codebases, issue\ntrackers, chat rooms and mailing lists is expected to follow the\n[code of conduct](https://github.com/hoverinc/graphql-log_helper/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoverinc%2Fgraphql-log_helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoverinc%2Fgraphql-log_helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoverinc%2Fgraphql-log_helper/lists"}