class BigKeeper::Logger

Public Class Methods

default(sentence) click to toggle source
# File lib/big_keeper/util/logger.rb, line 20
def self.default(sentence)
  puts sentence.to_s.colorize(:default)
end
error(sentence) click to toggle source
# File lib/big_keeper/util/logger.rb, line 28
def self.error(sentence)
  raise sentence.to_s.colorize(:red)
end
highlight(sentence) click to toggle source
# File lib/big_keeper/util/logger.rb, line 24
def self.highlight(sentence)
  puts sentence.to_s.colorize(:green)
end
log_with_type(sentence,type) click to toggle source
# File lib/big_keeper/util/logger.rb, line 11
def self.log_with_type(sentence,type)
  case type
  when DEFAULT_LOG then puts sentence.to_s.colorize(:default)
  when HIGHLIGHT_LOG then puts sentence.to_s.colorize(:green)
  when ERROR_LOG then raise sentence.to_s.colorize(:red)
  when WARNING_LOG then puts sentence.to_s.colorize(:yellow)
  end
end
separator() click to toggle source
# File lib/big_keeper/util/logger.rb, line 36
def self.separator
  puts "- - - - - - - - - - - - - - - - - - - - - - - - - - -".colorize(:light_blue)
end
warning(sentence) click to toggle source
# File lib/big_keeper/util/logger.rb, line 32
def self.warning(sentence)
  puts sentence.to_s.colorize(:yellow)
end