lib/backgrounded.rb in backgrounded-0.7.1 vs lib/backgrounded.rb in backgrounded-0.7.2

- old
+ new

@@ -4,11 +4,16 @@ require File.join(File.dirname(__FILE__), 'backgrounded', 'handler', 'inprocess_handler') Object.send(:include, Backgrounded::ClassMethods) module Backgrounded - mattr_accessor :handler - def self.handler - @@handler ||= Backgrounded::Handler::InprocessHandler.new + class << self + attr_accessor :logger, :handler end end +# default handler to the basic in process handler +Backgrounded.handler = Backgrounded::Handler::InprocessHandler.new + +# configure default logger to standard out with info log level +Backgrounded.logger = Logger.new STDOUT +Backgrounded.logger.level = Logger::INFO