lib/message_driver.rb in message-driver-0.5.3 vs lib/message_driver.rb in message-driver-0.6.0
- old
+ new
@@ -9,16 +9,21 @@
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
- def configure(broker_name = Broker::DEFAULT_BROKER_NAME, options)
- Broker.configure(broker_name, options)
+ # (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)