Sha256: a8111553201a22291998e313afaaf39f65be280fd4199d957b628638dc47f0c2
Contents?: true
Size: 554 Bytes
Versions: 1
Compression:
Stored size: 554 Bytes
Contents
require 'logger' require 'colorize' require 'colorized_string' module CartBinaryUploader class CartLogger class << self def log if @logger.nil? @logger = Logger.new STDOUT @logger.level = Logger::DEBUG @logger.datetime_format = '%Y-%m-%d %H:%M:%S ' end @logger end def logInfo string CartLogger.log.info string end def logError string CartLogger.log.error string.to_s.colorize(:color => :white, :background => :red) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cartup-0.1.6 | lib/cart_logger.rb |