Sha256: b284e4699ba80561db8cfb40aca15c90e8b65126a7f4c5688aac7e7a0991d191

Contents?: true

Size: 887 Bytes

Versions: 7

Compression:

Stored size: 887 Bytes

Contents

require 'message_driver/version'
require 'logger'

require 'message_driver/logging'
require 'message_driver/errors'
require 'message_driver/broker'
require 'message_driver/message'
require 'message_driver/middleware'
require 'message_driver/destination'
require 'message_driver/subscription'
require 'message_driver/adapters/base'
require 'message_driver/client'

# Easy message queues for ruby
module MessageDriver
  module_function

  # (see MessageDriver::Broker.configure)
  def configure(name = Broker::DEFAULT_BROKER_NAME, options)
    Broker.configure(name, options)
  end

  # @!attribute [rw] logger
  # defaults to an +INFO+ level logger that logs to +STDOUT+
  # @return [Logger] the logger +MessageDriver+ will use for logging.
  def logger
    @__logger ||= Logger.new(STDOUT).tap { |l| l.level = Logger::INFO }
  end

  def logger=(logger)
    @__logger = logger
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
message-driver-1.0.1 lib/message_driver.rb
message-driver-1.0.0 lib/message_driver.rb
message-driver-0.7.2 lib/message_driver.rb
message-driver-0.7.1 lib/message_driver.rb
message-driver-0.7.0 lib/message_driver.rb
message-driver-0.6.1 lib/message_driver.rb
message-driver-0.6.0 lib/message_driver.rb