Sha256: 5e1cb114abe560a2abd2a9c354210eae5048fae35b3bb8b4422d28c030d29806
Contents?: true
Size: 608 Bytes
Versions: 5
Compression:
Stored size: 608 Bytes
Contents
# Mysql2QueryFilter::Plugin::Log Logging plug-in for [Mysql2QueryFilter](https://github.com/winebarrel/mysql2_query_filter). ## Installation Add this line to your application's Gemfile: ```ruby gem 'mysql2_query_filter-plugin-log' ``` And then execute: $ bundle Or install it yourself as: $ gem install mysql2_query_filter-plugin-log ## Usage ```ruby require 'mysql2_query_filter' Mysql2QueryFilter.configure do |filter| filter.plugin :log #, out: $stderr end Mysql2QueryFilter.enable client = Mysql2::Client.new(host: 'localhost', username: 'root') client.query('show databases') ```
Version data entries
5 entries across 5 versions & 1 rubygems