Class: AWS::Flow::Utilities::LogFactory Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws/decider/utilities.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.make_logger(klass) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



30
31
32
# File 'lib/aws/decider/utilities.rb', line 30

def self.make_logger(klass)
  make_logger_with_level(klass, Logger::INFO)
end

.make_logger_with_level(klass, level) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



33
34
35
36
37
38
39
# File 'lib/aws/decider/utilities.rb', line 33

def self.make_logger_with_level(klass, level)
  logname = "#{Dir.tmpdir}/#{klass.class.to_s}"
  logname.gsub!(/::/, '-')
  log = Logger.new(logname)
  log.level = level
  log
end