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