Class: Occi::Api::Log

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

Constant Summary collapse

SUBSCRIPTION_HANDLE =
"rOCCI-api.log"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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


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

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

Instance Attribute Details

#core_logObject (readonly)

Returns the value of attribute core_log


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

def core_log
  @core_log
end

Instance Method Details

#closeObject


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

def close
  super
  @core_log.close
end

#level=(severity) ⇒ Object


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

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