Class: Kitchen::Terraform::DebugLogger

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/kitchen/terraform/debug_logger.rb

Overview

This class delegates to a logger but ensures the debug level is the default level used for logging messages.

Instance Method Summary collapse

Instance Method Details

#<<(message) ⇒ nil, true

This method overrides the #<< method of the delegate to call #debug.

Parameters:

  • message (#to_s)

    the message to be logged.

Returns:

  • (nil, true)

    if the given severity is high enough for this particular logger then return nil; else return true.



28
29
30
# File 'lib/kitchen/terraform/debug_logger.rb', line 28

def <<(message)
  debug message
end