{"id":13685527,"url":"https://github.com/basecamp/full_request_logger","last_synced_at":"2025-05-01T04:31:24.275Z","repository":{"id":35152958,"uuid":"211961773","full_name":"basecamp/full_request_logger","owner":"basecamp","description":"Make full request logs accessible via web UI","archived":true,"fork":false,"pushed_at":"2022-07-15T00:11:08.000Z","size":48,"stargazers_count":301,"open_issues_count":0,"forks_count":12,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-05-01T01:14:40.930Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":false,"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/basecamp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-30T21:34:46.000Z","updated_at":"2024-12-21T01:40:26.000Z","dependencies_parsed_at":"2022-07-25T19:18:00.462Z","dependency_job_id":null,"html_url":"https://github.com/basecamp/full_request_logger","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/basecamp%2Ffull_request_logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basecamp%2Ffull_request_logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basecamp%2Ffull_request_logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basecamp%2Ffull_request_logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/basecamp","download_url":"https://codeload.github.com/basecamp/full_request_logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251824321,"owners_count":21649845,"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-02T14:00:53.048Z","updated_at":"2025-05-01T04:31:23.969Z","avatar_url":"https://github.com/basecamp.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Full Request Logger\n\nEasy access to full request logs via a web UI. The recorder attaches to the existing Rails.logger instance,\nand captures a copy of each log line into a per-thread buffer. When the request is over, the middleware makes\nthe recorder store all the log lines that were recorded for that request as a compressed batch to an auto-expiring Redis key.\n\nThus you no longer have to grep through log files or wrestle with logging pipelines to instantly see all the\nlog lines relevant to a request you just made. This is ideal for when you're testing a feature in the wild with\nproduction-levels of data, which may reveal performance or other issues that you didn't catch in development.\n\n## Installation\n\n```ruby\n# Gemfile\ngem 'full_request_logger'\n```\n\n## Configuration\n\nAdd to development.rb and/or production.rb. Default time-to-live (TTL) for each recorded request is 10 minutes,\nand the default Redis storage is assumed to live on localhost, but both can be overwritten. Only configuration needed\nis the enabled setting.\n\n```ruby\nconfig.full_request_logger.enabled = true\nconfig.full_request_logger.ttl     = 1.hour\nconfig.full_request_logger.redis   = { host: \"127.0.0.1\", port: 6379, timeout: 1 }\n```\n\nYou can restrict which requests will be stored by setting an eligibility function that gets to evaluate the request:\n\n```ruby\nconfig.full_request_logger.eligibility = -\u003e(request) { request.params[:full_request_log] == \"1\" }\n```\n\nThis makes it easier to use the logger on a busy site that would otherwise result in a lot of needless redis writes.\n\nThe request logs access can be protected behind http basic by adding the following credentials\n(using `./bin/rails credentials:edit --environment production`):\n\n```\nfull_request_logger:\n  name: someone\n  password: something\n```\n\n## Usage\n\nAccess request logs via `/rails/conductor/full_request_logger/request_logs`.\n\n## License\n\nFull Request Logger is released under the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasecamp%2Ffull_request_logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasecamp%2Ffull_request_logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasecamp%2Ffull_request_logger/lists"}