Rails_semantic_logger

screenshot of Rails_semantic_logger

Rails Semantic Logger replaces the Rails default logger with Semantic Logger

Overview:

Rails Semantic Logger is a gem that replaces the default logger in Rails applications with structured logging in JSON format. This switch allows for centralized logging, making log entries more easily searchable and readable in a machine-friendly manner. This gem enhances the logging experience in Rails applications by providing a more robust and efficient way to manage logs in production environments.

Features:

  • Centralized Logging: Easily view and search logs from a central location.
  • Structured Logging: Log entries are formatted in JSON, making them machine-readable.
  • Custom Dashboard Creation: Build dashboards based on specific log data fields.
  • Sidekiq Metrics Support: Metrics like job duration and queue latency are available when using JSON logging format.
  • Direct Support for Sidekiq: Rails Semantic Logger supports Sidekiq versions 4, 5, 6, and 7.