Sha256: 32742bba2a104234d66121e5cc8b5993d8e83ff23e83077c288669af756112ae
Contents?: true
Size: 556 Bytes
Versions: 2
Compression:
Stored size: 556 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 log_info string CartLogger.log.info string end def log_error string CartLogger.log.error string.to_s.colorize(:color => :white, :background => :red) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cartup-0.1.7.1 | lib/cart_logger.rb |
cartup-0.1.7 | lib/cart_logger.rb |