Class: Cyrun::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/cyrun/logger.rb

Class Method Summary collapse

Class Method Details

.error(*message) ⇒ Object



6
7
8
# File 'lib/cyrun/logger.rb', line 6

def self.error(*message)
  puts "[ERROR] #{message.map(&:to_s).join}".red
end

.info(*message) ⇒ Object



10
11
12
# File 'lib/cyrun/logger.rb', line 10

def self.info(*message)
  puts "[INFO]  #{message.map(&:to_s).join}"
end