Sha256: e7b894c6cbb50deac838f7d7150ccbad96335cd3ba847434d04b3876c135ee31

Contents?: true

Size: 636 Bytes

Versions: 37

Compression:

Stored size: 636 Bytes

Contents

module Chimp
  class Log
    @@logger = Logger.new(STDOUT)

    # SeverityID, [DateTime #pid] SeverityLabel -- ProgName: message
    @@logger.datetime_format = '%H:%M:%S'
    @@logger.sev_threshold=Logger::INFO

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

    def self.threshold=(level)
      @@logger.sev_threshold=level
    end

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

    def self.debug(m)
      @@logger.debug(m)
    end

    def self.info(m)
      @@logger.info(m)
    end

    def self.warn(m)
      @@logger.warn(m)
    end

    def self.error(m)
      @@logger.error(m)
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
right_chimp-2.4 lib/right_chimp/log.rb
right_chimp-2.3.2 lib/right_chimp/log.rb
right_chimp-2.3.1 lib/right_chimp/log.rb
right_chimp-2.3 lib/right_chimp/log.rb
right_chimp-2.2.2 lib/right_chimp/log.rb
right_chimp-2.2.1 lib/right_chimp/log.rb
right_chimp-2.2 lib/right_chimp/Log.rb
right_chimp-2.1.28 lib/right_chimp/Log.rb
right_chimp-2.1.27 lib/right_chimp/Log.rb
right_chimp-2.1.26 lib/right_chimp/Log.rb
right_chimp-2.1.25.2 lib/right_chimp/Log.rb
right_chimp-2.1.25 lib/right_chimp/Log.rb
right_chimp-2.1.24 lib/right_chimp/Log.rb
right_chimp-2.1.22.2 lib/right_chimp/Log.rb
right_chimp-2.1.22.1 lib/right_chimp/Log.rb
right_chimp-2.1.22 lib/right_chimp/Log.rb
right_chimp-2.1.21 lib/right_chimp/Log.rb
right_chimp-2.1.19.1 lib/right_chimp/Log.rb
right_chimp-2.1.19 lib/right_chimp/Log.rb
right_chimp-2.1.18 lib/right_chimp/Log.rb