Sha256: d6742005f853a48cdf7aa66a6f17a332351e0ef3d92222f55078a4e9b93e9aaf
Contents?: true
Size: 910 Bytes
Versions: 2
Compression:
Stored size: 910 Bytes
Contents
# Mysql2QueryFilter::Plugin::Log Logging plug-in for [Mysql2QueryFilter](https://github.com/winebarrel/mysql2_query_filter). [![Gem Version](https://badge.fury.io/rb/mysql2_query_filter-plugin-log.svg)](http://badge.fury.io/rb/mysql2_query_filter-plugin-log) [![Build Status](https://travis-ci.org/winebarrel/mysql2_query_filter-plugin-log.svg?branch=master)](https://travis-ci.org/winebarrel/mysql2_query_filter-plugin-log) ## 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mysql2_query_filter-plugin-log-0.1.1 | README.md |
mysql2_query_filter-plugin-log-0.1.0 | README.md |