lib/shutl/resource/configuration.rb in shutl_resource-0.11.4 vs lib/shutl/resource/configuration.rb in shutl_resource-1.0.0
- old
+ new
@@ -26,13 +26,21 @@
Configuration.configure(*args, &block)
end
module Configuration
class << self
- attr_accessor :base_uri, :logger
+ attr_accessor :base_uri
def configure
yield self
+ end
+
+ def logger
+ @logger ||= Logger.new($stdout)
+ end
+
+ def logger=(logger)
+ @logger = logger
end
end
end
end