Class: DLDInternet::Thor::VCR::Logger
- Inherits:
-
VCR::Logger
- Object
- VCR::Logger
- DLDInternet::Thor::VCR::Logger
- Defined in:
- lib/dldinternet/thor/vcr/logger.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(stream, logger = nil, options = {}) ⇒ Logger
constructor
A new instance of Logger.
- #log(message, log_prefix, indentation_level = 0) ⇒ Object
Constructor Details
#initialize(stream, logger = nil, options = {}) ⇒ Logger
Returns a new instance of Logger.
9 10 11 12 13 |
# File 'lib/dldinternet/thor/vcr/logger.rb', line 9 def initialize(stream, logger=nil, = {}) super(stream) @logger = logger = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/dldinternet/thor/vcr/logger.rb', line 7 def end |
Instance Method Details
#log(message, log_prefix, indentation_level = 0) ⇒ Object
15 16 17 18 19 |
# File 'lib/dldinternet/thor/vcr/logger.rb', line 15 def log(, log_prefix, indentation_level = 0) indentation = ' ' * indentation_level = indentation + log_prefix + @logger.debug() end |