Silencer

screenshot of Silencer
rails

Easily suppress the Rails logger

Overview

SilencerGem is an innovative rack-middleware designed for Rails applications that allows developers to selectively disable logging on a per-action basis. This tool is perfect for those who want to manage their application's logging level more effectively without affecting the overall performance. As it is rooted in the insights provided by Dennis Reimann's blog post, Silencer combines simplicity and efficiency, making it a must-have for Rails developers looking to streamline their logging processes.

With its recent version 2.0, Silencer introduces a new mechanism that requires developers to explicitly require the correct logger within their applications. This upgrade enhances flexibility and control over logging behavior, particularly beneficial for applications with varied logging needs.

Features

  • Selective Logging Control: Silencer allows for disabling logging on a per-action basis, giving more granular control to developers.
  • Thread Safety: Compatible with Rails version 4.2.6 and later, ensuring safe operations in multi-threaded environments.
  • Flexible Configuration: Users can configure logging sensitivity by silencing specific request methods, enhancing the logging strategy tailored to the application.
  • Drop-in Logger Replacement: Easily replace Rails' default logger with Silencer's logger without losing standard logging functionalities.
  • Header Support: With the option to send an X-SILENCE-LOGGER header, additional flexibility is offered in controlling logging behavior on a request level.
  • Comprehensive Options: Extensive configuration options enable precise control over which requests to silence, ensuring developers can tailor the middleware to their needs.
  • Open for Contributions: Developers can contribute by forking the project, adding features or bug fixes, and submitting pull requests, fostering an active community around the tool.
rails
Ruby on Rails

Ruby on Rails, often referred to as Rails, is an open-source web application framework written in Ruby. Known for its convention over configuration and don't repeat yourself (DRY) principles, Rails simplifies and accelerates the development of database-backed web applications.