Module: HubClustersCreator::Logging

Included in:
Agent, Providers::AKS, Providers::Bootstrap, Providers::GKE
Defined in:
lib/hub-clusters-creator/logging.rb

Overview

Logging is few helper functions for logging

Instance Method Summary collapse

Instance Method Details

#error(string) ⇒ Object



30
31
32
# File 'lib/hub-clusters-creator/logging.rb', line 30

def error(string)
  Kernel.warn formatted_string(string, symbol: '!')
end

#info(string, options = {}) ⇒ Object



22
23
24
# File 'lib/hub-clusters-creator/logging.rb', line 22

def info(string, options = {})
  print formatted_string("[info] #{dated_string(string)}", options)
end

#warn(string) ⇒ Object



26
27
28
# File 'lib/hub-clusters-creator/logging.rb', line 26

def warn(string)
  Kernel.warn formatted_string(string, symbol: '*')
end