Class: Kitchen::Terraform::DebugLogger
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Kitchen::Terraform::DebugLogger
- 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.
Class Method Summary collapse
-
.new(obj) ⇒ Kitchen::Terraform::DebugLogger
.new creates a new instance of the class.
Instance Method Summary collapse
-
#<<(message) ⇒ nil, true
This method overrides the #<< method of the delegate to call #debug.
Class Method Details
.new(obj) ⇒ Kitchen::Terraform::DebugLogger
.new creates a new instance of the class.
27 28 29 30 31 32 33 |
# File 'lib/kitchen/terraform/debug_logger.rb', line 27 def new(obj) if !obj.kind_of? ::Kitchen::Logger raise ::TypeError, "delegate must be a Kitchen::Logger; recevied #{obj.class}" end super end |
Instance Method Details
#<<(message) ⇒ nil, true
This method overrides the #<< method of the delegate to call #debug.
41 42 43 |
# File 'lib/kitchen/terraform/debug_logger.rb', line 41 def <<() debug end |