No commit activity in last 3 years
No release in over 3 years
Stop logging of need not messages to log with an INFO level in production and staging enviroments
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 4.0.0
 Project Readme

QuietRailsLogger

Stop logging of need not messages to log with an INFO level in production and staging enviroments, example:

[2018-05-06 14:54:05] INFO Started GET "/" for 127.0.0.1 at 2018-05-06 14:54:05 +0300 [2018-05-06 14:54:05] INFO Processing by HomeController#index as HTML [2018-05-06 14:54:05] INFO Parameters: {"url_prefix"=>""} [2018-05-06 14:54:05] INFO Rendered home/index.html.slim (9.9ms)
[2018-05-06 14:54:06] INFO Completed 200 OK in 1068ms (Views: 953.2ms | ActiveRecord: 4.6ms)

Usage

Add to config/initializers/quiet_rails_logger.rb:

QuietRailsLogger.configure do |config|
  config.environments = %w[production staging]
end

Installation

Add this line to your application's Gemfile:

gem 'quiet_rails_logger'

And then execute:

$ bundle

License

The gem is available as open source under the terms of the MIT License.