class CartBinaryUploader::CartLogger
Public Class Methods
log()
click to toggle source
# File lib/cart_logger.rb, line 8 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
log_error(string)
click to toggle source
# File lib/cart_logger.rb, line 25 def log_error string CartLogger.log.error string.to_s.colorize(:color => :white, :background => :red) end
log_info(string)
click to toggle source
# File lib/cart_logger.rb, line 17 def log_info string CartLogger.log.info string end
log_warn(string)
click to toggle source
# File lib/cart_logger.rb, line 21 def log_warn string CartLogger.log.warn string end