SQL Logging in Rails Console IRB on October 21, 2011 Get link Facebook X Pinterest Email Other Apps In order to quickly find the SQL queries that are fired against the DB, while you are playing on the Rails Console, all you need to do is set ActiveRecord's Logger to STDOUT as below: >>ActiveRecord::Base.logger = Logger.new(STDOUT)