lib/dispatch-rider/configuration.rb in dispatch-rider-0.2.6 vs lib/dispatch-rider/configuration.rb in dispatch-rider-0.2.7
- old
+ new
@@ -1,16 +1,17 @@
module DispatchRider
class Configuration
- attr_accessor :handler_path, :error_handler, :queue_info, :queue_kind, :subscriber
+ attr_accessor :handler_path, :error_handler, :queue_info, :queue_kind, :subscriber, :logger
attr_reader :callbacks
def initialize
@handler_path = Dir.getwd + "/app/handlers"
@error_handler = DispatchRider::DefaultErrorHandler
@queue_kind = :file_system
@queue_info = { path: "tmp/dispatch-rider-queue" }
@callbacks = Callbacks::Storage.new
@subscriber = DispatchRider::Subscriber
+ @logger = Logger.new(STDERR)
end
delegate :before, :after, :around, :to => :callbacks
def handlers