7

Currently I am only getting ActiveRecord and view-rendering output in my Rails application log file, since I switched to Puma from WEBrick. I haven't been able to find where I can modify the output level of Puma's logging. Thoughts?

  • Have you looked at the configuration.rb settings? It looks like you can send the standard error and out to a file. – erimar77 Feb 8 '15 at 20:16
2

From http://guides.rubyonrails.org/debugging_rails_applications.html#log-levels:

The available log levels are: :debug, :info, :warn, :error, :fatal, and :unknown, corresponding to the log level numbers from 0 up to 5 respectively. To change the default log level, use

config.log_level = :warn # In any environment initializer, or
Rails.logger.level = 0   # at any time

This is useful when you want to log under development or staging, but you don't want to flood your production log with unnecessary information.

The default Rails log level is debug in all environments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.