Module: Travis::Logging

Included in:
Notifications
Defined in:
lib/travis/logging.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



25
26
27
# File 'lib/travis/logging.rb', line 25

def self.included(base)
  base.extend(self)
end

Instance Method Details

#log(*args) ⇒ Object



29
30
31
32
# File 'lib/travis/logging.rb', line 29

def log(*args)
  logger.info(*args)
  STDOUT.flush
end

#loggerObject



34
35
36
# File 'lib/travis/logging.rb', line 34

def logger
  Travis.logger
end

#notice(message) ⇒ Object



38
39
40
# File 'lib/travis/logging.rb', line 38

def notice(message)
  "\e[33m#{message}\e[0m"
end