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