Sha256: cf2400004d84678721953af8bab4aedcb582a26b6b711a0cd273ca63a4004dd6

Contents?: true

Size: 328 Bytes

Versions: 16

Compression:

Stored size: 328 Bytes

Contents

module Dandelion
  class << self
    def logger
      return @log if @log
      @log = Logger.new(STDOUT)
      @log.level = Logger::INFO
      @log.formatter = formatter
      @log
    end
    
    private
    
    def formatter
      proc do |severity, datetime, progname, msg| 
        "#{msg}\n"
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dandelion-0.3.8 lib/dandelion.rb
dandelion-0.3.7 lib/dandelion.rb
dandelion-0.3.6 lib/dandelion.rb
dandelion-0.3.5 lib/dandelion.rb
dandelion-0.3.4 lib/dandelion.rb
dandelion-0.3.3 lib/dandelion.rb
dandelion-0.3.2 lib/dandelion.rb
dandelion-0.3.1 lib/dandelion.rb
dandelion-0.3.0 lib/dandelion.rb
dandelion-0.2.3 lib/dandelion.rb
dandelion-0.2.2 lib/dandelion.rb
dandelion-0.2.1 lib/dandelion.rb
dandelion-0.2.0 lib/dandelion.rb
dandelion-0.1.7 lib/dandelion.rb
dandelion-0.1.6 lib/dandelion.rb
dandelion-0.1.5 lib/dandelion.rb