Class: Scm::Workflow::Utils::Logging

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/utils/logging.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLogging

Returns a new instance of Logging.



26
27
28
29
30
# File 'lib/utils/logging.rb', line 26

def initialize
  logsettings = Scm::Workflow::Utils::LogSettings.instance
  @logger = Logger.new(logsettings.output)
  @logger.level = logsettings.level
end

Instance Attribute Details

#loggerObject (readonly)

Returns the value of attribute logger.



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

def logger
  @logger
end