Module: Base

Defined in:
lib/base.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#logObject

Returns the value of attribute log.



23
24
25
# File 'lib/base.rb', line 23

def log
  @log
end

Class Method Details

.init_loggerObject



29
30
31
32
33
34
# File 'lib/base.rb', line 29

def self.init_logger
  log = Logger.new(STDOUT)
  log.progname = 'Knife VCenter'
  log.level = Logger::INFO
  log
end

.logObject



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

def self.log
  @log ||= init_logger
end