log in get active records code example Example: activerecord logger ActiveRecord::Base.logger = Logger.new(STDOUT)