Class: CartBinaryUploader::CartLogger
- Inherits:
-
Object
- Object
- CartBinaryUploader::CartLogger
- Defined in:
- lib/cart_logger.rb
Class Method Summary collapse
Class Method Details
.log ⇒ Object
8 9 10 11 12 13 14 15 |
# 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 |
.logError(string) ⇒ Object
21 22 23 |
# File 'lib/cart_logger.rb', line 21 def logError string CartLogger.log.error string.to_s.colorize(:color => :white, :background => :red) end |
.logInfo(string) ⇒ Object
17 18 19 |
# File 'lib/cart_logger.rb', line 17 def logInfo string CartLogger.log.info string end |