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, name) ⇒ 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.



24
25
26
27
28
29
30
# File 'lib/aws/decider/utilities.rb', line 24

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