Sha256: 41f0615ffdfa9016cd0b49cdcec2e6fcd0733d38c50e45f4c28f7ec0ab3f85b5

Contents?: true

Size: 356 Bytes

Versions: 6

Compression:

Stored size: 356 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dandelion-0.3.15 lib/dandelion.rb
dandelion-0.3.14 lib/dandelion.rb
dandelion-0.3.13 lib/dandelion.rb
dandelion-0.3.12 lib/dandelion.rb
dandelion-0.3.11 lib/dandelion.rb
dandelion-0.3.10 lib/dandelion.rb