Adjust Log Level in Ruby on Rails

To adjust your log level for a Rails project, you have two options.


  1. Edit config/environment.rb and set a global log level. This will override all environments (development, production, etc).

  2. Edit config/environments/production.rb, for instance to change production's log level. This is recommended. Simply add the line config.log_level = :warn to set WARN level. This will greatly decrease the amount of logging performed.

Popular posts from this blog

Mouse Lock for HTML5 FPS games

The 29 Healthiest Foods on the Planet

Add SSL to your personal website