# Log SQL Queries Executed By ActiveRecord When entering ActiveRecord statements in a Rails console, it can be useful to see what SQL queries are being executed under the hood. ```ruby > Book.first Book Load (25.6ms) SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT $1 [["LIMIT", 1]] => # ActiveRecord::Base.logger = Logger.new(STDOUT) ``` Enter an ActiveRecord statement, you should now be seeing the corresponding SQL queries. [source](https://stackoverflow.com/a/2936016/535590)