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