Add Loggability for nicer debugging output.

FossilOrigin-Name: ff761d0e8e8638b1f4d98d8d913d99591d83da0167d75b28f1bd186e1907ee47
This commit is contained in:
Michael Granger 2021-10-06 17:25:50 +00:00
parent 87f8430048
commit 6cc96d8fae
5 changed files with 82 additions and 0 deletions

View file

@ -2,15 +2,22 @@
# vim: set nosta noet ts=4 sw=4 ft=ruby:
# encoding: utf-8
require 'loggability'
require 'mdbx_ext'
# Top level namespace for MDBX.
#
module MDBX
extend Loggability
# The version of this gem.
VERSION = '0.3.2'
log_as :mdbx
end # module MDBX

View file

@ -8,6 +8,9 @@ require 'mdbx' unless defined?( MDBX )
# The primary class for interacting with an MDBX database.
#
class MDBX::Database
extend Loggability
log_to :mdbx
### call-seq:
### MDBX::Database.open( path ) => db