lib/berkshelf.rb in berkshelf-2.0.0 vs lib/berkshelf.rb in berkshelf-2.0.1

- old
+ new

@@ -26,10 +26,11 @@ class << self require 'berkshelf/mixin/logging' include Berkshelf::Mixin::Logging attr_accessor :ui + attr_accessor :logger attr_writer :cookbook_store # @return [Pathname] def root @root ||= Pathname.new(File.expand_path('../', File.dirname(__FILE__))) @@ -63,15 +64,10 @@ # # @param [Berkshelf::Chef::Config] new_config # the new configuration file to use attr_writer :chef_config - # @return [Logger] - def logger - Celluloid.logger - end - # @return [String] def tmp_dir File.join(berkshelf_path, 'tmp') end @@ -160,5 +156,8 @@ require_relative 'berkshelf/logger' require_relative 'berkshelf/resolver' require_relative 'berkshelf/test' if ENV['RUBY_ENV'] == 'test' require_relative 'berkshelf/ui' require_relative 'berkshelf/version' + +Ridley.logger = Celluloid.logger = Berkshelf.logger = Logger.new(STDOUT) +Berkshelf.logger.level = Logger::WARN \ No newline at end of file