Class: TopologicalInventory::Providers::Common::Logger

Inherits:
ManageIQ::Loggers::CloudWatch
  • Object
show all
Defined in:
lib/topological_inventory/providers/common/logging.rb

Class Method Summary collapse

Class Method Details

.new(*args) ⇒ Object



35
36
37
38
39
40
# File 'lib/topological_inventory/providers/common/logging.rb', line 35

def self.new(*args)
  super.tap do |logger|
    logger.extend(TopologicalInventory::Providers::Common::LoggingFunctions)
    logger.level = ENV['LOG_LEVEL'] if ENV['LOG_LEVEL']
  end
end