Sha256: 2a66eee18b0713b43f60daceadd4d2ce68d6326a443f7b087f21b51690f8c20e

Contents?: true

Size: 869 Bytes

Versions: 8

Compression:

Stored size: 869 Bytes

Contents

require 'riak/encoding'
require 'riak/core_ext'
require 'riak/client'
require 'riak/map_reduce'
require 'riak/util/translation'
require 'riak/crdt'
require 'riak/instrumentation'

# The Riak module contains all aspects of the client interface to
# Riak.
module Riak
  # Utility classes and mixins
  module Util; end
  extend Util::Translation

  class NullLogger
    def fatal(msg) end

    def error(msg) end

    def warn(msg)  end

    def info(msg)  end

    def debug(msg) end
  end

  class << self
    # Only change this if you really know what you're doing. Better to
    # err on the side of caution and assume you don't.
    # @private
    attr_accessor :disable_list_keys_warnings

    # Set a custom logger object (e.g. Riak.logger = Rails.logger)
    attr_accessor :logger
  end
  self.disable_list_keys_warnings = false
  self.logger = NullLogger.new
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
riak-client-2.6.0 lib/riak.rb
riak-client-2.5.0 lib/riak.rb
riak-client-2.4.1 lib/riak.rb
riak-client-2.4.0 lib/riak.rb
riak-client-2.4.0.pre1 lib/riak.rb
riak-client-2.3.2 lib/riak.rb
riak-client-2.3.1 lib/riak.rb
riak-client-2.3.0 lib/riak.rb