Replace RAILS_DEFAULT_LOGGER with Rails.logger

rebased #268.