Class: RETS4R::Client::HTTPDebugLogger
- Inherits:
-
Object
- Object
- RETS4R::Client::HTTPDebugLogger
- Defined in:
- lib/rets4r/client.rb
Overview
Provides a proxy class to allow for net/http to log its debug to the logger.
Instance Method Summary collapse
- #<<(data) ⇒ Object
-
#initialize(logger) ⇒ HTTPDebugLogger
constructor
A new instance of HTTPDebugLogger.
Constructor Details
#initialize(logger) ⇒ HTTPDebugLogger
Returns a new instance of HTTPDebugLogger.
478 479 480 |
# File 'lib/rets4r/client.rb', line 478 def initialize(logger) @logger = logger end |
Instance Method Details
#<<(data) ⇒ Object
482 483 484 |
# File 'lib/rets4r/client.rb', line 482 def <<(data) @logger.debug(data) end |