use Rails.logger if Rails defined