In a rake task if I use puts command then I see the output on console. However I will not see that message in log file when app is deployed on production.
However if I s
In Rails 2.X to redirect the logger to STDOUT in models:
ActiveRecord::Base.logger = Logger.new(STDOUT)
To redirect logger in controllers:
ActionController::Base.logger = Logger.new(STDOUT)