123456789_123456789_123456789_123456789_123456789_

Module: Bundler::PubGrub

Constant Summary

Class Attribute Summary

Class Method Summary

Class Attribute Details

.logger (rw)

[ GitHub ]

  
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub.rb', line 17

def logger
  @logger || default_logger
end

.logger=(value) (rw)

[ GitHub ]

  
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub.rb', line 15

attr_writer :logger

Class Method Details

.default_logger (private)

[ GitHub ]

  
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub.rb', line 23

def default_logger
  require "logger"

  logger = ::Logger.new(STDERR)
  logger.level = $DEBUG ? ::Logger::DEBUG : ::Logger::WARN
  @logger = logger
end