Sha256: 41b3ea1613ab9c5a0dc38bfc6a5e406c4bb7b06cf3f61e5bd3dc6c5a0f336911

Contents?: true

Size: 267 Bytes

Versions: 5

Compression:

Stored size: 267 Bytes

Contents

module Monkeyshines
  # Common logger
  def self.logger
    @logger ||= Monkeyshines.default_logger
  end
  def self.logger= logger
    @logger = logger
  end

  def self.default_logger dest=nil
    require 'logger'
    dest ||= $stderr
    Logger.new dest
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
monkeyshines-0.2.3 lib/monkeyshines/utils/logger.rb
monkeyshines-0.2.2 lib/monkeyshines/utils/logger.rb
monkeyshines-0.2.1 lib/monkeyshines/utils/logger.rb
monkeyshines-0.2.0 lib/monkeyshines/utils/logger.rb
monkeyshines-0.0.2 lib/monkeyshines/utils/logger.rb