Console::Adapter::Rails GuidesGetting Started

Getting Started

This guide explains how to integrate the console-adapter-rails gem into your Rails application.

Installation

Add the gem to your project:

$ bundle add console-adapter-rails

The gem includes a Railtie that will set up all required logging configuration for you.

If you wish to log ActiveRecord, add Console::Adapter::Rails::ActiveRecord.apply! into your config/environment.rb file, before the Rails.application.initialize! call.