Class: AWS::Flow::Utilities::LogFactory Private
- Inherits:
-
Object
- Object
- AWS::Flow::Utilities::LogFactory
- 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.
24 25 26 |
# File 'lib/aws/decider/utilities.rb', line 24 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.
27 28 29 30 31 32 33 |
# File 'lib/aws/decider/utilities.rb', line 27 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 |