When I do
Rails.logger.debug \"hello world\" from within my rake tasks I want it to log to standard out.
How do I set the rails logger to Logger.new(STDOUT) fro
You can reset the default logger this way:
RAILS_DEFAULT_LOGGER = Logger.new(STDOUT)
You can also set the logger for specific parts of your application (ActiveRecord, ActionController...) like this:
ActiveRecord::Base.logger = Logger.new(STDOUT)