Sha256: 8222bc8792e7fbc709144a1e31ea8fc6e53b691f8935b8296e0a083bc9909552

Contents?: true

Size: 422 Bytes

Versions: 2

Compression:

Stored size: 422 Bytes

Contents

require "crate_ruby/version"
require "crate_ruby/error"
require 'crate_ruby/result_set'
require 'crate_ruby/client'

include CrateRuby

module CrateRuby
  def self.logger
    @logger ||= begin
      require 'logger'
      log = Logger.new(File.join(File.dirname(__FILE__), "../log/crate.log"), 10, 1024000)
      log.level = Logger::DEBUG
      log
    end
  end

  def self.logger=(logger)
    @logger = logger
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
crate_ruby-0.0.2 lib/crate_ruby.rb
crate_ruby-0.0.1 lib/crate_ruby.rb