Class: AWS::Flow::LogMock Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws/decider/executor.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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLogMock

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.

Returns a new instance of LogMock.



25
26
# File 'lib/aws/decider/executor.rb', line 25

def initialize()
end

Instance Attribute Details

#log_levelObject

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/executor.rb', line 24

def log_level
  @log_level
end

Instance Method Details

#debug(s) ⇒ 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/executor.rb', line 30

def debug(s)
  p "debug: #{s}" if @log_level > 3
end

#error(s) ⇒ 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.



36
37
38
39
# File 'lib/aws/decider/executor.rb', line 36

def error(s)
  p "error: #{s}" if @log_level > 1
  p s.backtrace if s.respond_to?(:backtrace)
end

#info(s) ⇒ 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
# File 'lib/aws/decider/executor.rb', line 27

def info(s)
  p "info: #{s}" if @log_level > 4
end

#warn(s) ⇒ 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
# File 'lib/aws/decider/executor.rb', line 33

def warn(s)
  p "warn: #{s}" if @log_level > 2
end