how to enable error log on production rails code example Example: rails logger stdout Rails.logger = Logger.new(STDOUT)