Skip to content

Collect 'ActiveRecord sql query' to monitoring system(s).

License

Notifications You must be signed in to change notification settings

metalels/sqlogger

Repository files navigation

MIT licensed Gem Version Build Status Code Climate Test Coverage Issue Count

Sqlogger

Collect 'ActiveRecord sql query' to monitoring system(s).

send sql-log to elasticsearch

Dependency

Currently supports Rails 3.1.0 and upper.
Tested minor version between 3.1.0 and 5.1.0beta1

Installation

Add this line to your application's Gemfile:

gem 'sqlogger', group: :development

And then execute in Rails Project root directory:

$ bundle
$ rake sqlogger:install

Usage

edit sqlogger setting file in config/initializers/sqlogger.rb.

Contributing

git-flow.