Replaced Rails.logger with logger