Sha256: 7545dd7bc2b80ab3038fe5100e1289fec9d9b8bf26d183a42bea925314a93dc0

Contents?: true

Size: 259 Bytes

Versions: 1

Compression:

Stored size: 259 Bytes

Contents

require 'logger'


module Darksky

  def self.logger=(logger)
    @logger = logger
  end

  def self.logger
    @logger ||= NullLogger.new()
  end

  class NullLogger < Logger

    def initialize(*args)
    end

    def add(*args, &block)
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
darksky-ruby-0.0.1 lib/darksky-ruby/logger.rb