Module: VcenterLibMongodb::Logging

Included in:
Mongodb, Updater
Defined in:
lib/vcenter_lib_mongodb/logging.rb

Overview

for logger access just include this module

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.loggerObject



10
11
12
# File 'lib/vcenter_lib_mongodb/logging.rb', line 10

def logger
  @logger ||= VcenterLib::Logging.logger
end

Class Method Details

.included(base) ⇒ Object

addition



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/vcenter_lib_mongodb/logging.rb', line 16

def self.included(base)
  class << base
    def logger
      # :nocov:
      Logging.logger
      # :nocov:
    end

    def logger=(logger)
      # :nocov:
      Logging.logger = logger
      # :nocov:
    end
  end
end

Instance Method Details

#loggerObject



32
33
34
# File 'lib/vcenter_lib_mongodb/logging.rb', line 32

def logger
  Logging.logger
end

#logger=(logger) ⇒ Object



36
37
38
# File 'lib/vcenter_lib_mongodb/logging.rb', line 36

def logger=(logger)
  Logging.logger = logger
end