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