Sha256: 53e258ba65b6068cc4b83cc31bde1116415760598750a29a0b0a85c7168436ec

Contents?: true

Size: 355 Bytes

Versions: 19

Compression:

Stored size: 355 Bytes

Contents

module Ezlog
  module Sequel
    module LoggingExtension
      def self.extended(db)
        db.instance_exec do
          self.sql_log_level = :debug
          self.log_connection_info = false
          @loggers << Ezlog.logger('Sequel')
        end
      end
    end

    ::Sequel::Database.register_extension :ezlog_logging, LoggingExtension
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ezlog-0.10.7 lib/sequel/extensions/ezlog_logging.rb
ezlog-0.10.5 lib/sequel/extensions/ezlog_logging.rb
ezlog-0.10.3 lib/sequel/extensions/ezlog_logging.rb
ezlog-0.10.2 lib/sequel/extensions/ezlog_logging.rb
ezlog-0.10.1 lib/sequel/extensions/ezlog_logging.rb
ezlog-0.10.0 lib/sequel/extensions/ezlog_logging.rb
ezlog-0.9.6 lib/sequel/extensions/ezlog_logging.rb
ezlog-0.9.5 lib/sequel/extensions/ezlog_logging.rb
ezlog-0.9.1 lib/sequel/extensions/ezlog_logging.rb
ezlog-0.9.0 lib/sequel/extensions/ezlog_logging.rb
ezlog-0.8.0 lib/sequel/extensions/ezlog_logging.rb
ezlog-0.7.1 lib/sequel/extensions/ezlog_logging.rb
ezlog-0.7.0 lib/sequel/extensions/ezlog_logging.rb
ezlog-0.6.0 lib/sequel/extensions/ezlog_logging.rb
ezlog-0.5.3 lib/sequel/extensions/ezlog_logging.rb
ezlog-0.5.2 lib/sequel/extensions/ezlog_logging.rb
ezlog-0.5.1 lib/sequel/extensions/ezlog_logging.rb
ezlog-0.5.0 lib/sequel/extensions/ezlog_logging.rb
ezlog-0.4.0 lib/sequel/extensions/ezlog_logging.rb