# Log SQL queries in the Rails console

When debug queries in the console I often want to see the raw DB queries being made.

Here's a quick little piece of code which will make those queries visible in the console.

```ruby
ActiveRecord::Base.logger = Logger.new(STDOUT)
```

This will tell the ActiveRecord logger to log out to STDOUT which is what we're using in the console.
