Class: Occi::Cli::Log

Inherits:
Log
  • Object
show all
Defined in:
lib/occi/cli/log.rb

Constant Summary collapse

SUBSCRIPTION_HANDLE =
"rOCCI-cli.log"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log_dev, log_prefix = '[rOCCI-cli]') ⇒ Log


10
11
12
13
# File 'lib/occi/cli/log.rb', line 10

def initialize(log_dev, log_prefix = '[rOCCI-cli]')
  @api_log = ::Occi::Api::Log.new(log_dev) 
  super
end

Instance Attribute Details

#api_logObject (readonly)

Returns the value of attribute api_log


8
9
10
# File 'lib/occi/cli/log.rb', line 8

def api_log
  @api_log
end

Instance Method Details

#closeObject


15
16
17
18
# File 'lib/occi/cli/log.rb', line 15

def close
  super
  @api_log.close
end

#core_logObject


26
27
28
# File 'lib/occi/cli/log.rb', line 26

def core_log
  @api_log.core_log
end

#level=(severity) ⇒ Object


21
22
23
24
# File 'lib/occi/cli/log.rb', line 21

def level=(severity)
  @api_log.level = severity
  super
end