Class: Cch::Loggers::Stdout

Inherits:
Object
  • Object
show all
Defined in:
lib/cch/loggers/stdout.rb

Instance Method Summary collapse

Instance Method Details

#log(level, message, time = Time.new) ⇒ Object


4
5
6
7
8
# File 'lib/cch/loggers/stdout.rb', line 4

def log(level, message, time = Time.new)
  log_message = "=> #{'cch'.color(:cyan)} [#{time}] [#{level}] - #{message}"
  puts log_message
  log_message
end