{"repo":"DocSpring/logstruct","free":true,"listed":false,"github":"https://github.com/DocSpring/logstruct","clone":"git clone https://github.com/DocSpring/logstruct.git","description":"Zero-config, type-safe JSON logging for Ruby on Rails apps.","language":"Ruby","stars":30,"topics":["cloudwatch","cloudwatch-logs","cloudwatch-metrics","json-logging","logger","logger-middleware","logging","rails","structured-logging","ruby"],"license":"MIT","category":"dashboards-admin","readme_excerpt":"LogStruct Adds secure JSON structured logging to any Rails app ( = 7.1). Simply add the gem to your Gemfile and add an initializer to configure it. By default, your Rails app prints JSON logs to STDOUT (or to the configured destination when RAILS LOG TO STDOUT is set). They're easy to search and filter, you can turn them into metrics and alerts, and they're great for building dashboards in CloudWatch, Grafana, or Datadog. We support all your other favorite gems too, like Sidekiq, Sentry, and Shrine. (And if not, please open a PR!) Features - JSON logging enabled by default for server processes in production and test environments (automatically disabled for console and other Rake tasks) - ActionMailer integration for email delivery logging - ActiveJob integration for job execution logging - Sidekiq integration for background job logging - Shrine integration for file upload logging - Error handling and reporting - Metadata collection for rich context - Lograge integration for structured request logging - Sensitive data scrubbing for strings (inspired by the Logstop gem) - Host authorization logging for security violations - Rack middleware for enhanced error logging - Type checking with Sorbet and RBS annotations Installation Add this line to your application's Gemfile: And then execute: Or install it yourself as: Configuration and Initialization LogStruct is designed to be highly opinionated and work out of the box with minimal configuration. Please see the documentation for c","default_branch":null,"files":null,"tree":[],"storefront":"/r/DocSpring","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/DocSpring/logstruct/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}