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

Lists and arrays in Dart

Null-aware operators in Dart

Converting Array to List in Scala